C++ Help please (easy)

Associate
Joined
24 Sep 2003
Posts
928
Location
Bedfordshire
Hi,

Got a number of classes that need to access some integer variables (determined before runtime in main) that won't change. Is it best to setup a super class to hold these to access them from the other classes?

Thanks,

aaazza
 
Ah ok cool.

If I do this in a header and include it in other classes I can just access them?

EDIT: Of course you just use 'using namespace namespace_name;' :)

Cheers,

aaazza
 
Last edited:
Back
Top Bottom