摘要:
假如a.h中有 int a=10; t1.cpp和t2.cpp同时include "a.h"则编译不成功,因为a重复定义;如果 a.h中是 static int a=10;则可以,因为t1和t2中的a只是名字相同,地址空间不同;如果a.h中是 extern int a; 并且在a.cpp中 int 阅读全文
posted @ 2016-10-25 09:20
龙城狂拽酷炫霸
阅读(173)
评论(0)
推荐(0)
浙公网安备 33010602011771号