配置vscode中的c++环境
D:\mingw-w64\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin
D:\mingw-w64\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin
"command": "D:\mingw-w64\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\g++.exe",此处只能设置成g++.exe
"miDebuggerPath": "D:\mingw-w64\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\gdb.exe",设置成gdb.exe或和c_cpp_properties.json文件compilerPath匹配
"compilerPath": "D:/mingw-w64/x86_64-8.1.0-release-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe",此处可以依据配置设置g++.exe,gcc.exe,cpp.exe;
修改tasks.json文件中,将args参数中的${file}修改为${fileDirname}\.c(.cpp)