Implimenting prompts in program for reinput from user?

  • From: Jes <theeternalkid@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Tue, 20 Jul 2010 06:36:25 -0400

Say I want a user to enter a number from 1 to 3, but they enter something else, 
like 4, or the letter v, or whatever. How would I tell the program to display 
an error message to the user using cout, then return them to the initial prompt?
Thanks.
Jes

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: