69,382
社区成员
发帖
与我相关
我的任务
分享
#include <set>
#include <iostream>
using namespace std;
#ifdef _UNICODE
#define _T(x) L ## x
typedef wchar_t TCHAR;
#define tcout wcout
#else
#define _T(x) x
#define tcout cout
typedef char TCHAR;
#endif
int main()
{
setlocale(LC_ALL, "");
set<const TCHAR*> cSec;
cSec.insert(_T("中国人"));
cSec.insert(_T("美国人"));
cSec.insert(_T("英国人"));
set<const TCHAR*>::iterator set_it = cSec.find(_T("中国人"));
tcout << *set_it << endl;
getchar();
}