I am trying to set a variable in one .cpp file with a SetState() function and from another .cpp I want to retrieve it with a GetState() function.
I was curious about the rules: should they be public or private.
One other thing, if there are more than one variable(instance) should I do the SetState() and GetState() calls within the init function.
thanks,
I was curious about the rules: should they be public or private.
One other thing, if there are more than one variable(instance) should I do the SetState() and GetState() calls within the init function.
thanks,