hey, im sure this is a really simple problem but im baffled as to why i get an infinate loop if a character and not a number is inputed using this code:
do {
cout << "please enter either 1 or 2";
cin >> c1;
I would expect c1 to be a char, and compare it against the characters '1' and '2'. Note that '1' has an ASCII value of 49, not 1. Look up an ASCII chart for more information about chars and their integral representation.