创建文件并进入编辑器
vim hello.c
输入代码
#include <stdio.h>
int main(){
printf("hello world!");
}
编译c程序
gcc hello.c
执行后会出现a.out文件
执行c程序
./a.out hello.c
微信扫一扫
创建文件并进入编辑器
vim hello.c
输入代码
#include <stdio.h>
int main(){
printf("hello world!");
}
编译c程序
gcc hello.c
执行后会出现a.out文件
执行c程序
./a.out hello.c
相关推荐