https://sourceforge.net/projects/mingw/
进入这个网站,下载下来一个安装包。
这个安装包比较小。
双击安装。
找到g++gcc这个勾选上。
选择更新资源。
再配置环境变量。