title: Input validation for characters use only, in C++
body: <p>How do I validate that the user have entered only characters and not numbers?</p>
  
  <pre><code>char name[20];
  cin.getline(name, 20);
  
  If(!cin) {
   cerr&lt;&lt;"ERROR"&lt;&lt;endl;
   cin.clear();
  }
  </code></pre>