Stick the menu in a while statement. Take care, Sina -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jes Sent: Sunday, July 25, 2010 6:03 PM To: programmingblind@xxxxxxxxxxxxx Subject: C++ question and advice? Hi all, If I instruct a user to enter a choice from a menu, and they enter an invalid response, how do I display the menu of choices again without retyping the cout statements? For example, cout << "Please select your favorite candy: 1. Snickers. 2. Baby Ruth. 3. Milky way. "; If the user entered number 4, How would I print the menu again without typing all those statements? And, can somebody explain to me the difference between the do while, and while loops? Thanks. Jes __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind