clearing invalid value from memory
I'm having trouble with a validation bit of code.
If the user enters an invalid character, I want to clear out that value from memory so the user can enter a valid character...
((chOTyesno != 'y') || (chOTyesno != 'Y') ||
(chOTyesno != 'n') || (chOTyesno != 'N'))
// this is where the statement would go, right?
// how do I clear chOTyesno so that it is ready
// for a new value?
cout << "Did you work overtime? (y/n)\n";
chOTyesno = getch();