在使用了tchar之后,std中有些类型并没有t类型,于是自己添加上类似的定义
#ifdef UNICODE
namspace std
{
static wistream& tcin = wcin;
static wostream& tcout = wcout;
static wostream& tcerr = wcerr;
static wostream& tclog = wclog;
typedef wstring tstring;
}
#else
namspace std
{
static istream& tcin = cin;
static ostream& tcout = cout;
static ostream& tcerr = cerr;
static ostream& tclog = clog;
typedef string tstring ;
}
#endif