Ubuntu运行C程序

命令行输入 touch hello.c 创建文件
命令行输入 vim hello.c 进入vim编辑文件
按 i 进入Insert模式编写代码
按Esc退出编辑
输入 :wq 保存并退出
命令行输入 gcc hello.c -o hello 编译程序
命令行输入 ./helo 运行

 

posted @ 2020-10-18 20:30  Rao&  阅读(530)  评论(0)    收藏  举报