You can use singletons, which are basically objects with a static member that mimics global variables.
You can use singletons, which are basically objects with a static member that mimics global variables.
That's against the rules, you know.bump bump bump
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
it is? oops. i'll read over the rules again. but while your here couldn't you look at my code?
Last edited by punkrockguy318; 11-30-2003 at 08:04 AM.
I've done games and programs with a Settings class with all necessary static variables for global use. But I have a question for you all, should I make an Settings object global, or is it better to pass it along to all classes that need it?
I think it's better to create the settings class as a Singleton. Here's some information if your interested. http://gethelp.devx.com/techtips/cpp.../10min0200.asp