首页 > 系统服务 > 详细

在ubuntu编写helloworld

时间:2019-11-27 21:52:07      阅读:142      评论:0      收藏:0      [点我收藏+]

安装vim

打开终端
输入sudo apt-get install vim-gtk
输入登陆密码
等待安装完成

编译C

创建.c文件:vim helloworld.c
编写代码,保存并退出

技术分享图片

编译:gcc helloworld.c -o helloworld
运行:./helloworld

技术分享图片

命令 说明
:q! 强制退出,不保存
:q 退出
:wq! 强制保存并退出
:w <文件路径> 另存为
:saveas 文件路径 另存为
:x 保存并退出
:wq 保存并退出

linux直接编译helloworld

 #bin/Bash
echo "hello world"

技术分享图片

在ubuntu编写helloworld

原文:https://www.cnblogs.com/Lin1031/p/11945613.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!