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

更深入学习请点击:
顶嵌技术交流网
转载于:https://blog.51cto.com/chenboqiang/266447