Mingw-w64安装
打开vscode,下载c/c++支持插件
#include "stdio.h" #include "windows.h" int main() { printf("hello world\n"); system("Pause"); return 0; }
再次编译,程序成功运行
和gcc配置步骤一样,把选择gcc的地方改成g++即可,可以参考上面的配置
vscode搭建C/C++环境
原文:https://www.cnblogs.com/keplercc/p/12067181.html