http://www.cnblogs.com/zyl910/archive/2013/01/20/wchar_crtbug_01.html
主要代码
#ifdef _UNICODE
locale::global(locale(""));//多字节不能显示,所以加了个开关
wcout.imbue(locale(""));
#endif
或者
#include <locale.h>
_tsetcocale(LC_ALL,_T("chs"));
http://www.cnblogs.com/zyl910/archive/2013/01/20/wchar_crtbug_01.html
主要代码
#ifdef _UNICODE
locale::global(locale(""));//多字节不能显示,所以加了个开关
wcout.imbue(locale(""));
#endif
或者
#include <locale.h>
_tsetcocale(LC_ALL,_T("chs"));