title: Preventing user from inputting certain chars in c++
body: <p>I'm quite new to c++ so please understand that my question may be silly.</p>
  
  <p>I need to create a function which takes from the user a table and fills it with only specific characters. Let's say that the user needs to input his name. If the user inputs a charater from A to Z (or a to z) the character should be displayed on the screen and in that case- everything is fine. The problem is- when the user inputs a forbidden character (for instance 1-9) this shouldn't be displayed on the screen and the cursor should stay in the same position).</p>
  
  <p>Do you guys know how to do this?</p>