C语言入门hello world

1.安装软件

c语言开发工具众多,初学者推荐使用Dev-Cpp 5.6.3 TDM-GCC x64 4.8.1 Setup.exe;安装过程全部默认安装即可。

2.使用Dev-Cpp编写第一个入门实例-hello world

2.1新建文件。打开Dev-Cpp,依次选择【文件】——》【新建】——》【源代码】

2.2编写入门代码

#include <stdio.h>

int main()
{
    printf("hello world!\n");
    return 0; 
}

2.3点击【编译】,在编译日志中看到成功,说明代码编译通过

2.4点击【运行】,运行我们的代码,查看终端输出。所有步骤请参照下图

猜你喜欢

转载自www.cnblogs.com/bc1234/p/12080593.html