关闭→
当前位置:科普经验站>IT科技>linux中如何编译并运行c程序

linux中如何编译并运行c程序

科普经验站 人气:1.47W

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

linux中如何编译并运行c程序

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

linux中如何编译并运行c程序 第2张

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

linux中如何编译并运行c程序 第3张

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

linux中如何编译并运行c程序 第4张

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

linux中如何编译并运行c程序 第5张

TAG标签:#编译 #linux #运行 #