在example.c中
example.c
int a = 0;
在example.h中
example.h
extern int a;
然后其他c文件#include "example.h"就可以了。
#include "example.h"就可以了。
立减 ¥
请填写红包祝福语或标题
红包个数最小为10个
红包金额最低5元
抵扣说明:
1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。 2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。