Code:
#include <iostream>
using namespace std;
int main ()
{
cout<< "You can enter the house to the East or go down the road to the south.\n\n" << "Choose your path.\n\n";
int patha;
cout<< "1.South\n2. West\n";
cin>> patha;
switch (patha)
{
case 1:
cout<< "As you enter the house you notice a distinct smell... It almost makes you vomit. The smell of, flesh.\n";
break;
case 2:
cout<< "You move down the road towards the center of the city... You wonder where this street will lead you.\n";
break;
default:
cout<< "Please pick again...\n";
}
system ("PAUSE");
}
How do I let the user move back to the original location? I'm thinking of... Linking the rooms would be something better to ask?
Thanks,
-SP