惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
V
Visual Studio Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
I
InfoQ
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
P
Proofpoint News Feed
WordPress大学
WordPress大学
小众软件
小众软件
B
Blog
MongoDB | Blog
MongoDB | Blog
人人都是产品经理
人人都是产品经理
量子位
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客

博客园 - 步青云

comfyui一次成功的抽卡 在 MySQL 5.7 中实现每月手动创建分区 tp5设置log文件输出 微信小程序连接websocket随记 命令提示符 在win64上使用bypy进行百度网盘文件上传 phpqrcode生成任意尺寸的二维码 Visual Studio 2017 安装心得 用火车头采集器8.6免费版采集图片 为了android sdk下载,必须修改hosts win2003服务器网站和数据库的二周自动备份 ultraedit去空行 用Navicat for MySQL进行数据库的导入导出 尝试jquery插件的开发 移动硬盘数据惊魂恢复记 用C#的控制台程序监控apache网站是否正常 织梦内容管理系统 4_0_1 的rand()优化 FlashDevelop的第一个程序 RHEL6下编译Mplayer 用SciTE调试C++程序遇到的小问题
Linux下第一个C程序
步青云 · 2011-04-29 · via 博客园 - 步青云

1、输入源代码

vi hello.c

进入vi界面,按 i 进入insert模式(i和Esc用于模式切换)

#include <stdio.h>
int main(int argc,char **argv)
{
printf(
"Hello,Linux!\n");
}

按Esc退出insert模式,执行:wq!存盘退出。

2、编译源代码、链接、运行

gcc -o hello hello.c

./hello

如果显示 Hello,Linux! ,则该程序开发完毕。