wstring类型字符标准输出

来源:互联网 发布:新东方考研网络课程 编辑:程序博客网 时间:2024/06/11 02:02


学习记录 以备查找

输出unicode类型返回值(字符串常量 L 就可以了)

std::wcout.imbue(std::locale("chs"));wcout<<ANSIToUnicode( s )<<endl;wstring ANSIToUnicode( const string& str );