Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualsuperman3275

Posted 29 December 2012 - 03:20 PM

Try using Pre-Compiled headers. Saves you a lot of time smile.png.

 

When you declare a variable in Main.cpp, it isn't included in any other files, and it's generally bad practice to include "Main.cpp" in another .h or .cpp file. What you could do is make a new file called "Global.h" and decalre all your Global variables in that file. That way, all you have to do is include "Global.h" in all of your source files.

 

Cheers smile.png!


#1superman3275

Posted 29 December 2012 - 03:19 PM

Try using Pre-Compiled headers. Saves you a lot of time :).

 

When you declare a variable in Main.cpp, it isn't included in any other files, and it's very bad practice to include "Main.cpp" in another .h or .cpp file. What you could do is make a new file called "Global.h" and decalre all your Global variables in that file. That way, all you have to do is include "Global.h" in all of your source files.

 

Cheers :)!


PARTNERS