Well you can use isalpha() for the letters and reject it if the function returns true. You could make your own function with if else if else statements for the nonconforming numbers.
edit: whoah bad suggestion, your switch case would work great if you only want like 8 numbers or something... in the default just return like -1 or something if it's in a function otherwise simply set some value to false and don't do the next step if that bool is false, you jelly?
The problem is when i enter something like a letter or letters it will end the while loop and print the last cout. I want it to reloop if the options are not 1 or 2 .