Let's say I have some constants defined:
const int NUMBER = 5;
const int NUMBER_2 = 6;
Is there any way I can have the user input something like NUMBER or NUMBER_2 and convert that to the value without having to cin using a string and a lot of if statements or a switch statement?
I have a lot of constants defined this way, in this assignment, and I'm not supposed to change them (it would take way too long anyway).