解決方法:
//module.h
extern int global;
//module.cpp
int global;
這樣在module.h頭檔案在被重複包含的時候就不會出現變量global重定義的問題了。
解決方法:
//module.h
extern int global;
//module.cpp
int global;
這樣在module.h頭檔案在被重複包含的時候就不會出現變量global重定義的問題了。