0
点赞
收藏
分享

微信扫一扫

mac 下写c程序


创建文件并进入编辑器

vim hello.c

输入代码

#include <stdio.h>
int main(){
    printf("hello world!");
}

编译c程序

gcc hello.c

执行后会出现a.out文件
执行c程序

./a.out hello.c


举报

相关推荐

0 条评论