Mingw-w64安装html
打开vscode,下载c/c++支持插件 c++
#include "stdio.h" #include "windows.h" int main() { printf("hello world\n"); system("Pause"); return 0; }
再次编译,程序成功运行 windows
和gcc配置步骤同样,把选择gcc的地方改为g++便可,能够参考上面的配置插件