#include "stdafx.h"
#include <iostream>
#include <string>
#ifdef UNICODE
#define TEXT(s) L##s
#else
#define TEXT(s) s
#endif
#ifdef UNICODE
#define tstring std::wstring
#else
#define tstring std::string
#endif
#ifdef UNICODE
#define tcout std::wcout
#else
#define tcout std::cout
#endif
void init_tstring()
{
std::wcout.imbue(std::locale("chs"));
}
int _tmain(int argc, _TCHAR* argv[])
{
init_tstring();
tstring str = _T("测试UNICODE -By Gods_巨蚁");
tcout<<str<<std::endl;
tcout<<_T("sizeof(TCHAR)=")<<sizeof(TCHAR)<<std::endl;
system("pause");
return 0;
}