1.如果eclipse不支持C/C++编码,可以安装插件,设置如下: a>.打开eclipse,点击help--install new software... b>.在work with 一栏输入http://download.eclipse.org/tools/cdt/releases/kepler c>.点击确定,等待,会有插件显示出来,全选上,点击next进行安装。 2. 安装好插件后,重启eclipse。 3. 点击file--new--other--找到C++ Project,点击next,选择empty project。输入project name 。点击finish即可新建C++ project工程,然后就可以编写C++代码了。
http://blog.csdn.net/defonds/article/details/5013213