所需软件
1.Eclipse IDE for C/C++ Developers
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/junosr2
2.MinGW Distro - nuwen.net
MinGW配置
1.解压MinGW到C盘 得到C:MinGW
2.配置环境变量
CPLUS_INCLUDE_PATH
C:MinGWincludec++4.8.1;C:MinGWincludec++4.8.1i686-pc-mingw32;C:MinGWincludec++4.8.1ackward;C:MinGWinclude
(4.8.1根据你所下载的MinGW里面的版本号进行修改)
C_INCLUDE_PATH
C:MinGWinclude
LIBRARY_PATH
C:MinGWlib
Path
C:MinGWin;%path%
Eclispe配置
1.解压缩eclipse到某一目录
2.启动eclipse
3.Project->Properties->C/C++ Build->Settings->Binary Parsers 勾选PE Windows Parse
4.新建C++项目,选择MinGW GCC
5.程序写好后,一定要build,点击锤子图标,快捷键ctrl+b
6.run