Assuming you are using cin to get input, just dump the input into a string, then look at the string to determine if it is 1-4 or something else. Generally all text-based user input should be received as a string and then processed if you want to do any kind of error checking on it.