安装 MinGW
MinGW
http://www.mingw.org
![MinGW](https://i-blog.csdnimg.cn/blog_migrate/b694a3ca00a9716a59bc1ac7a1b3ee19.png)
点击 installatino - applychanges 安装
添加环境变量
在系统变量中找到 Path 变量,在后面加入 min-gw的安装目录,如 D:\MinGw\bin
测试
-
命令行
g++ -v
gcc -v
g++
成功如下:
g++: fatal error: no input files
compilation terminated.
program C
-
在桌面创建一个hello.c
#include <stdi