模块间变量传递

A模块函数

.h文件中   extern int a;

.c文件中 B模块函数,可以定义 int a;直接引用即可。

 

posted @ 2012-10-29 19:49  奔流聚海  阅读(308)  评论(0编辑  收藏  举报