My question is if there was a way to get an integer variable and then print a specific word when it is set.
What I mean is if someone inputs a value of 1 that is then assigned to variable int fCur, is there a way to print a word (for example Germany) instead of the value 1 ?
cout << "You selected "<< fCur << endl;
I want it to print
"You selected Germany"
not
"You selected 1"
I appologize if this is poorly worded this is my first time using this site
stringin C++ for this purpose.string str; if(fCur==1)str="Germany";