Static variable question?

  • Thread starter Thread starter Khanh01
  • Start date Start date
K

Khanh01

Guest
hello, i want to ask if i do this right?
I think when declaring static in .h file
Then in .cpp I declare include .h, it will work as in one file.

however it does not seem to work! where i was wrong?

1547316.png1547317.png

when i debug: The variable is not initialized

1547320.png

however in another similar project, it works. It seems to be possible due to the compiler structure (is this possible?)

Continue reading...
 
Back
Top