Basically, I am trying to do a very simple ATM.
A user can input any symbol on the keyboard, but as int op is an integer, I only want to allow them to input a number and nothing else.
Everything works, except for one thing - when user inputs more than one symbol (for example, 4 letters), cmd types out "cout << endl << endl << "Wrong symbol. " << endl;" for all 4 of the symbols.
How do I make them count as one symbol so it types out the line above only one time?
Sorry if I phrased it pretty harshly.
Thanks in advance!
P.S. this for loop is not a finished result, it is just a small part.
So I have tried pasting the line in and it does sort of work, but now it blocks the for loop and doesn't let it do another loop. What should I do differently?