I am new to C++ programming, teaching myself as I go along. I am currently writing a program where the user can pick multiple options which modify multiple variables. I included a "reset" button, which will reset all of the variables (float type) back to 0.
Herin lies my question: Is there a neater, more concise way to reset variables to a default value than individually reassigning their value? (a=0; b=0; c=0; etc etc)
This would still be rather unwieldy. I have a few hundred variables. Is there a way to define a group of variables perhaps? Then set that group of variables to a default assignment?