你需要一个公共的头文件,比如test.h,在里面包含了1.c和2.c中全局函数的声明,全
局变量的声明等,
然后在1.c和2.c中用#include "test.h",就可以了。
"konica" <[EMAIL PROTECTED]> 写入邮件 news:[EMAIL PROTECTED]
>
> 想知道CW对一个程序的代码分成两个文件写有什么样的要求。
>
> -----------------------
> test(1+2).c
> **
> 1**
> 2**
> -----------------------
>     ||?
>     \/?
> ____  ____
> 1.c   2.c
> **    **
> 1**   2**
> ____  ____
>
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to