创建文件并进入编辑器
vim hello.c
输入代码
#include <stdio.h>
int main(){
printf("hello world!");
}
编译c程序
gcc hello.c
执行后会出现a.out文件
执行c程序
./a.out hello.c
mac 下写c程序
阅读 69
2023-06-13
创建文件并进入编辑器
vim hello.c
输入代码
#include <stdio.h>
int main(){
printf("hello world!");
}
编译c程序
gcc hello.c
执行后会出现a.out文件
执行c程序
./a.out hello.c
相关推荐
精彩评论(0)