怎样使用c语言编写hello wrold程序

2024-11-12 11:58:08

1、​打开c++新建工程

怎样使用c语言编写hello wrold程序

2、选择创建一个空的工程

怎样使用c语言编写hello wrold程序

3、 点击确定。

怎样使用c语言编写hello wrold程序

4、 创建一个新的文件

怎样使用c语言编写hello wrold程序

5、 编写文件代码。

怎样使用c语言编写hello wrold程序

6、 编译文件代码

怎样使用c语言编写hello wrold程序

7、 运行代码如上图所示。

怎样使用c语言编写hello wrold程序

8、​现就代码程序做如下说明: #include "stdio.h"基本输入输出头文件,包掺滦贾溺含printf函数#include "conio.h"控制输入输出所需函数的头文件,包含getc茑霁酌绡h函数main主函数,每个程序必须包含{括号表示函数体的范围,里面有两行命令printf("Hello, world\n");输出“hello,world”,\n表示换行 getch();表示结果界面暂停,随便按键即可返回}​

猜你喜欢