C语言入门(2)——安装VS2013开发环境并编写第一个C语言程序

 

在C语言入门系列中,我们使用Visual studio 2013 Professional作为开发工具。本篇具体介绍怎样安装Visualstudio 2013 Professional并写出我们第一个C程序。

 

1、工具准备

开发机环境:Win7或以上版本号操作系统,Internet Explorer 10(IE10)或以上版本号。

建议安装IE11。在线安装包下载地址:

http://windows.microsoft.com/zh-cn/internet-explorer/download-ie

Visual studio 2013 Professional安装包。下载地址:

http://download.microsoft.com/download/F/9/A/F9A5F370-B6B0-4E2E-8F08-A8EADFD3BC22/vs2013.2_pro_chs.iso 

 

2、保持网络畅通,并执行下载的Internet Explorer 11(IE11)在线安装包。等待在线更新。

 

3、安装完成后又一次启动计算机,并保证网络在线。

 

4、保证网络在线,双击安装程序,选择安装路径,依照下图勾选选项。并点击下一步。

 

5、选择须要安装的组件,并安装。

 

6、等待安装。

 

7、安装完成后又一次启动计算机

 

8、又一次启动计算机后能够在桌面找到VisualStudio 2013的快捷方式。

双击启动。

 

9、第一次启动Visual Studio2013时会出现登录提示,假设你有MSDN帐号能够通过此帐号登录,假设没有能够关闭此窗体。

 

10、配置经常使用开发环境为Visual C++,并点击“启动Visual Studio”button

 

11、等待visual studio进行配置

 

12、Visual studio启动完成

 

13、点击菜单[文件]->[新建]->[项目]新建一个项目:

 

14、创建一个Win32控制台应用程序:

 

15、点击下一步

 

16、在附加选项中勾选空项目,点击完成。

 

17、生成了一个空的项目文件

 

18、在左側“解决方式资源管理器”窗体中,“源文件”文件夹下点击右键。点击“加入”->“新建项”

 

19、加入一个C++文件,改动名称为“main.cpp”,点击加入。

 

20、写一段C语言代码helloworld。

#include<stdio.h>
#include<stdlib.h>
/*開始我的第一个C语言程序!*/
int main(void)
{
	printf("Hello, world.\n");
	system("pause");  /*使程序执行结束后暂停,防止结果一闪而过*/
	return 0;
}



 

21、点击工具栏上的保存button,保存刚刚写好的代码。

 

22、点击“本地Windows调试器”button编译并执行。

 

23、点击确定

 

24、执行结果。

假设没有出现这个窗体,那么请细致检查敲入的代码是否有打错字的情况。

 

恭喜你,第一个C语言程序已经执行了。


[Wrox] Visual Studio 2013 高级编程 (英文版) [Wrox] Professional Visual Studio 2013 (E-Book) ☆ 图书概要:☆ Comprehensive guide to Visual Studio 2013 Visual Studio is your essential tool for Windows programming. Visual Studio 2013 features important updates to the user interface and to productivity. In Professional Visual Studio 2013, author, Microsoft Certified Trainer, and Microsoft Visual C# MVP Bruce Johnson brings three decades of industry experience to guide you through the update, and he doesn't just gloss over the basics. With his unique IDE-centric approach, he steers into the nooks and crannies to help you use Visual Studio 2013 to its maximum potential. - Choose from more theme options, check out the new icons, and make your settings portable - Step up your workflow with hover colors, auto brace completion, peek, and CodeLens - Code ASP.NET faster than ever with new shortcuts - Get acquainted with the new SharePoint 2013 environment - Find your way around the new XAML editor for Windows Store apps Visual Studio 2013 includes better support for advanced debugging techniques, vast improvements to the visual database tools, and new support for UI testing for Windows Store apps. This update is the key to smoother, quicker programming, and Professional Visual Studio 2013 is your map to everything inside. ☆ 出版信息:☆ [作者信息] Bruce Johnson [出版机构] Wrox [出版日期] 2014年03月17日 [图书页数] 1104页 [图书语言] 英语 [图书格式] PDF 格式
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值