问题描述 vscode生成的exe文件出现中文乱码的问题 解决方案: 头文件处添加: #include<windows.h> main函数中加入语句: SetConsoleOutputCP(65001);