title: How can I make a C++ program throw an error when a user enters an integer when a string is expected?
body: <p>How do I do simple validation in C++?</p>
  
  <p>What I mean is how can I make the program throw an error when a user enters an integer when a string is expected, and ask the user to re-enter until a string is entered.</p>
  
  <p>Is there a simple way to do this?</p>
  
  <p>Thanks</p>