Quick Question

This is a discussion on Quick Question within the C++ Programming forums, part of the General Programming Boards category; If someone chooses the wrong path I want the program to end there but if they choose the right path ...

Quick Question

If someone chooses the wrong path I want the program to end there but if they choose the right path I want it to keep going.

Here's the code so far.

Code:

int choice2;
switch (choice2)
{
case 1:
cout << "You walk towards the room. The hallway you are in feels like it is closing in around you and you get an eery feeling as you push open the door.\n\n";
break;
case 2:
cout << "You sit down on the couch and the television turns on to your amazment! You try to see what is on the screen but your vision begins to fade. What is this strange feeling you wonder as everything around you begins to blackout.";
}

If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.