Input validation is fun stuff, and a huge part of programs that have any user interaction. C++ standard input functions have various failbits that will be flagged if input went awry. Should look into this. The documentation on this site has it explained pretty well. It'll catch a good portion of bad input, the rest of the work is up to you