Help. I am working on a final project that stimulates an ATM machine. My professor tested it and found that it causes an infinite loop if he entered a character rather than a number for what I had set up to be menu choices. I cant really find anything that works.
Samples:
cout << "Please enter your PIN\n" << endl;
cin >> pin;
while((pin < 1000)||(pin > 9999))
{