c++ 在控制台用 wcout输出宽字符的问题

在我的电脑上要想通过 std::wcout输出 宽字符 需加入以下代码

#include <io.h>
#include <fcntl.h>
void main()

{
_setmode(_fileno(stdout), _O_U16TEXT);
}

而且以后的输出不能用std::cout必须要用std::wcout

原文地址:https://www.cnblogs.com/zhangdongsheng/p/7823628.html