草庐IT

c++ - 如何将用户从控制台输入的内容读入 Unicode 字符串?

一个C++初学者的问题。这是我目前拥有的://Fromtchar.h#define_T(x)__T(x)...//Fromtchar.h#define__T(x)L##x...//InMySampleCode.h#ifdef_UNICODE#definetcoutwcout#else#definetcoutcout#endif...//InMySampleCode.cppCAtlStringstrFileName;if(bIsInteractiveMode){char*cFileName=newchar[513];tcout>>");cin.getline(cFileName,512)