在VS中新建一个Windows控制台应用程序项目,然后从项目属性中将编译为修改为C编译器,详细步骤(http://jingyan.baidu.com/article/3a2f7c2e25f41926afd611c0.html);