Original Post
I have created a class with a series of global variables, I have a main class, which initializes several other classes within itself, so it acts like the master class of the program. Unfortunately the global class variables are able to be changed during run time, so I cannot make them constant, so I was wondering what is the most efficient way to pass the global variables along to every other class from my main class? Right now I create the global class variable within my main class, then for every other class that gets initialized, I pass a pointer to the global class that the main class created, so those classes have a pointer to the global variables that the main class holds.
If that was not incredibly confusing, I would like some suggestions.
Thank you.