How do you check that when i use cin to get a number, the user doesn't enter a character? when this happens, the screen goes crazy, and i'd like to protect against this.

thanks,
jmiller