环境配置
配置mingw
1.下载mingw
Downloads - MinGW-w64
![image-20230419135045848](https://img-blog.csdnimg.cn/img_convert/e18df4bad4cdf243749e1efec0bdabdc.png)
2.配置环境变量
C:\Program Files\x86_64-12.2.0-release-win32-seh-ucrt-rt_v10-rev2\bin
![image-20230419141120710](https://img-blog.csdnimg.cn/img_convert/abb4595c2791e15b59bc76eff9ecc62e.png)
配置vscode
1.安装插件
![image-20230419135510368](https://img-blog.csdnimg.cn/img_convert/256fc4ada49aa2a880889769c1cfdad9.png)
2.配置c_cpp_properties.json
![image-20230419135356139](https://img-blog.csdnimg.cn/img_convert/e076abd3df0faf161ba32c2fa7cdc8a0.png)
check出现的c_cpp_properties.json:
![image-20230419135814480](https://img-blog.csdnimg.cn/img_convert/014ddbea5d3823b0474e72965828909b.png)
3.配置task.json
![image-20230419140104045](https://img-blog.csdnimg.cn/img_convert/77897aa28d45e02c40ea3a8c9121c5d1.png)
check task.json
![image-20230419140116710](https://img-blog.csdnimg.cn/img_convert/9b46d8cd29f30415e76bcebbcf9be013.png)
4.调试
![image-20230419140159809](https://img-blog.csdnimg.cn/img_convert/4fc7a64ceef7ed5560d1e2f69f16bfac.png)
![image-20230419140523798](https://img-blog.csdnimg.cn/img_convert/cfdfc33c7d8d2dfe8f92af25fba9c4e3.png)
很神奇,整个过程没有涉及到 launch.json,但仍能运行成功???费解