- 脑动力:C语言函数速查效率手册
- 韩先锋编著
- 238字
- 2020-08-28 05:13:19
1.4 使用Microsoft Visual C++ 6.0运行程序
Visual C++ 6.0是微软公司的C++开发工具,但是它也能编译运行部分C程序,由于这个工具相对简单,我们将直接进行使用说明,不再逐个菜单进行介绍。
(1)打开VC++ 6.0程序,如图1-12所示。

图1-12 VC++ 6.0空白窗口
(2)选择File→New命令,在New对话框中选择Files选项卡,选择C++ Source File,在File文本框中输入文件名,记住文件名扩展名为.c,然后单击OK按钮确认,如图1-13所示。

图1-13 New对话框
(3)输入代码,如图1-14所示。

图1-14 代码窗口
(4)按F7键编译程序,如果没有写错代码,按Ctrl+F5组合键运行程序,结果如图1-15所示。

图1-15 运行结果