当前位置:生活全书馆 >

IT科技

> centos编译运行c程序

centos编译运行c程序

1、打开Linux系统,启动shell命令终端。

centos编译运行c程序

2、在终端中输入gedit helloworld.c命令并回车

centos编译运行c程序 第2张

3、进入之后进行编译,编译好后保存并退出。

centos编译运行c程序 第3张

4、输入gcc helloworld.c命令并回车,等待编译成功。

centos编译运行c程序 第4张

5、输入命令 ./a.out  即可运行程序。

centos编译运行c程序 第5张

标签: centos 编译 运行
  • 文章版权属于文章作者所有,转载请注明 https://shqsg.com/zh/dianzi/96k1z9.html