【Linux/C】程序的编译和连接--例子

上一篇文章已经讲过了程序从源文件到可执行文件之间的实现过程,这篇文章讲一个简单的例子,首先准备三个文件。web //main.c文件内容 #include<stdio.h> #include "fun.h" int main() { printf("the answer is %d\n",calc(5,6)); printf("hello,world.\n"); retur
相关文章
相关标签/搜索