Linux 基础与应用教程 005(GCC实验)

GCC实验
1、安装GCC编译器yum install -y gcc
2、vi hello.c
用vi写“hello world!”的C语言代码vi hello.c
#include "stdio.h"
int main()
{
printf("hello world! ");
}
3、用GCC将该文件编译为可执行文件hello.run
gcc hello.c -o hello.run
chmod +x hello.run
4、运行hello.run,./hello.run。

This moment will nap, you will have a dream; but this moment study, you will interpret a dream.
原文地址:https://www.cnblogs.com/mawenqi-barry/p/8818323.html