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

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

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

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

相关文章:

  • 2021-11-17
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案