Greetings. I have recently started learning C++ and I do have some knowledge as far as C goes. Anyway I've written some simple programs and one problem I constantly run into is validating the users input. For an example I will prompt the user to enter an integer, but if the user inputs a character the program goes berserk. Is there anyway to ensure the user inputs the correct data type? Thank you in advance.