现在的位置: 首页 > 综合 > 正文

wstring类型字符标准输出

2013年02月05日 ⁄ 综合 ⁄ 共 140字 ⁄ 字号 评论关闭

学习记录 以备查找

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

std::wcout.imbue(std::locale("chs"));
wcout<<ANSIToUnicode( s )<<endl;

wstring ANSIToUnicode( const string& str );

 

抱歉!评论已关闭.