In some cases, the 'switch' function may help you.
using namespace std;
//Declare 'inputSection' for the goto statement,
// used further down
//Tells the user to enter their choice
cout << "Do you want to continue? [Y/N] :";
//gets the user's input character (Y or an N)
cin >> UserChoice;
//Tells the computer what to do with whatever
//character the user entered.
//If the input is a 'Y' or a 'y'
case 'Y' :
case 'y' :
/* CODE GOES HERE TO
CONTINUE WITH THE PROGRAM */
//If the input is an 'N' or an 'n'
case 'N' :
case 'n' :
The user does not want to continue,
//so exit the program
/* If the user doesn't enter a 'Y'
or an 'N', do this. */
cout << "You must either enter a ";
cout << "'Y' to continue, or an 'N' to quit." << endl << endl;
//Wait until the user is ready (Prints out
//"Press any key to continue...")
//Clear the screen
//go back to the input stage of the program