1. 使用STL函数设置为系统语言环境
std::locale::global(std::locale(""));
2. 使用C语言的函数设置为中文运行环境POST http://writeblog.csdn.net/PostEdit.a3BChinese-simplified");
3. cout.imbue(locale("chs"));
wcout.imbue(locale("chs"));
1. 使用STL函数设置为系统语言环境
std::locale::global(std::locale(""));
2. 使用C语言的函数设置为中文运行环境POST http://writeblog.csdn.net/PostEdit.a3BChinese-simplified");
3. cout.imbue(locale("chs"));
wcout.imbue(locale("chs"));