wctest19.cpp
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C++ 代码 · 共 23 行
CPP
23 行
#include <wclist.h>
#include <iostream.h>
#include <string.hpp>
int main() {
WCPtrSList<String> list;
String d1("str#1");
String d2("str#2");
String d3("str#3");
list.insert( &d1 );
list.insert( &d2 );
list.insert( &d3 );
cout << "[" << *list.find(0) << "] - find(0)\n";
cout << "[" << *list.find(2) << "] - find(2)\n";
cout << "[" << *list.find() << "] - find()\n";
cout << "[" << *list.find(1) << "] - find(1)\n";
cout << "[" << *list.findLast() << "] - findLast()\n";
cout.flush();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?