摘要: 问题: 我能不能理解为 gcc hello.c -o hello 是编译,./hello.c 是运行?为什么一定要通过-o输出?我是不是不能直接运行 .c 的文件?是不是以后工作了,都得通过编译 .c 的文件,然后生成一个可执行的程序?因为我是初学者,还不明白以后的工作流程。 答案: 你的理解对了一 阅读全文
posted @ 2026-06-22 23:35 smil、梵音 阅读(15) 评论(0) 推荐(0)
摘要: 错误再现: 命令行中执行: leaf@leaf-XiaoXinPro-16-IAH7:~/桌面/C++/testCode$ gcc hello.c -o hello leaf@leaf-XiaoXinPro-16-IAH7:~/桌面/C++/testCode$ ./hello.c bash: ./h 阅读全文
posted @ 2026-06-22 23:28 smil、梵音 阅读(12) 评论(0) 推荐(0)