Localhost login:root
Password:******
// 登录界面
//Enter
Esc
:wq
保持退出
[root@localhost root]#touch helloworld.c
// 创建一个 helloworld.c 源文件
[root@localhost root]#vi helloworld.c
// vi 打开 helloword.c 源文件,可以创建一个 helloword C 语言源文件
#include <stdio.h>
Int main()
{
 Printf(“hello world!\n”);
 Return 0;
}
// ESC
:wq
// 保持退出
[root@localhost root]#gcc –o file helloworld.c
// 编译 helloworld.c 程序
[root@localhost root]#./file
// 执行 file 文件,显示 hello world
 
 
更深入学习请点击: 顶嵌技术交流网