You can use singletons, which are basically objects with a static member that mimics global variables.
Printable View
You can use singletons, which are basically objects with a static member that mimics global variables.
That's against the rules, you know. :oQuote:
bump bump bump
it is? oops. i'll read over the rules again. but while your here couldn't you look at my code?
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