Advertisement

Can I define Globals like this?

Started by January 29, 2000 08:13 PM
0 comments, last by Esap1 24 years, 10 months ago
Can I define all my globals in one file, because different header files, and cpp files, need the global variables, so I thought I should do it like that, I am doing it with my defines and it worked, so.......
If you want to, you can. You just need to declare them as extern in your header file. Then, be sure to include this header file before you other header files in your source files.

Edited by - I-Shaolin on 1/29/00 8:45:27 PM

This topic is closed to new replies.

Advertisement