The definition of global variables has never known how to get, sleepy for a long time, finally found answers on the blog of Vckbase Huan Http://blog.vckbase.com/ARONG/Archive/2004/05/28/294.aspx As described below: XX.cpp, yy.cpp ... xx.h, yy.h, etc. in the project, defined the variable INT TEST = 5 in the XX.cpp; in order to use it in yy.cpp Test this variable, we joined Extern Int Test = 5 in Yy.H; then, you can use Test in yy.cpp ~~~