Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Rod Ochoa

Member Since 28 Dec 2012
Offline Last Active Apr 28 2013 06:48 PM

#5015295 Program Wide Global Vars in C++?

Posted by Rod Ochoa on 28 December 2012 - 09:22 PM

global.hpp

 

extern int counter;

 

global.cpp

 

include "global.hpp"

int counter;

 

other.cpp

 

include "global.hpp"

 

// Use counter.......




PARTNERS