index.cpp
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C++ 代码 · 共 18 行
CPP
18 行
#include <string.hpp>
void main( void ) {
String s_A ("Open Watcom C++ compiler");
String s_B ("C++");
char *pch = "com";
cout << "String A: \"" << s_A << "\"\n"
<< "String B \"" << s_B << "\" is at the offset "
<< s_A.index( s_B ) << " of the string A.\n"
<< "The string C \"" << pch << "\" is at the offset "
<< s_A.index( pch ) << " and " << s_A.index( pch, 7 )
<< " of the string A." << endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?