I'm currently writing a small program in C++ for my programmingclass, and I've got a problem:
The user is prompted for a number between 1 and 44. If he (or she) do so the program does what it is made for. If he writes a too small, negative or too large number, the user gets an error message and is prompted for a new number. This works fine BUT if the user types a letter the program freaks out. How can I prevent this?
I hope someone can help me......
//// David - Sweden