c++ - How to declare a global variable that could be used in ...

c++ - How to declare a global variable that could be used in ...

瀏覽:696
日期:2025-05-21
2010年1月8日 - I have a variable that I would like to use in all my classes without ... global.h extern int myVar; global.cpp #include "global.h" int myVar = 0; .... // L....看更多