extern关键字可以用来声明变量和函数作为外部变量或者函数供其它文件使用。
1、extern声明变量示例程序:test.h如下:
//声明
extern int a;
extern int b;
test.c如下:
#include "t
2018-10-13