This is what I am trying to do:
Input global variables from a data file, and use those variables throughout my software.
What I have done: I have created a class that has the global variables declared and init to some default setting. I then read the data file, and set the global variables to the data that I read in. My problem is that when I change the global variables in the class it is only a local change, and in the other classes (that use extern) only see the default setting. I understand WHY what I am doing is wrong and will not work. What I need is a work around for that.
Question: Is there a way to declare a global variable, and then change the value; and have that value used throughout the software. ( I know that I could just pass the class, but I am trying to avoid this).
thanks - and if this isn't clear please mention that