1、云端编写程序并运行
[root@ecs-b7a1 ~]# mkdir testc //创建目录
[root@ecs-b7a1 ~]# cd testc //打开目录
[root@ecs-b7a1 testc]# vim hello.c //创建c文件,i/a/o进行创建,esc退出编译,用:进入底行模式,wq保存并退出当前文件
[root@ecs-b7a1 testc]# gcc -o hello hello.c //gcc编译
[root@ecs-b7a1 testc]# ./hello //运行
hello world
[root@ecs-b7a1 testc]# ls //显示目录
hello hello.c
2、已经编写的C程序,直接拖拽进来,其他同上。