内容 |
各位朋友,你们还不会使用VS2012编写c语言吗?今日小编就分享了使用VS2012编写c语言的操作内容,有需要的朋友就跟小编一起来学习一下吧。 打开vs2012——文件——新建——项目 单击  在对话框左侧分别找到模板——其他语言——visual c++——win32 选择“win32控制台应用程序”并设置好”名称“和”存储路径 “后单击确定  单击下一步  然后勾选”空项目“  单击菜单栏——视图——解决方案资源管理器  在弹出的浮动窗口中单击右键 ”源文件“  然后选择——添加——新建项 单击  接着选择visual c++ 后选择”c++文件“并命名为holloworld.c  输入c语言代码 #include int main() { printf("hello world!"); return 0; } 单击”本地windows调试器“或者ctrl + F5  单击是  运行结果如图  以上这里为各位分享了使用VS2012编写c语言的操作方法。有需要的朋友赶快来看看本篇文章吧。 |