#include<iostream>
#include<string>
usingnamespace std;
int main()
{
string firstanswr;
string mapnum;
string place;
cout<<"It's a stormy night at sea. You are lost, and also the last member"<<endl;
cout<<"of your crew on board. What will you do?"<<endl;
cout<<"a) find your map"<<endl;
cout<<"b) go to sleep"<<endl;
cin>> firstanswr;
if (firstanswr=="a")
{
cout<<"You have decided to find your map."<<endl;
}
else
{
cout<<"You failed."<<endl;
system("pause");
return 0;
}
cout<<"Where could your map be?"<<endl;
cout<<" 1 | 2 | 3 "<<endl;
cout<<"_____|______|_____"<<endl;
cout<<" 4 | 5 | 6 "<<endl;
cout<<" | | "<<endl;
cin>> mapnum;
if (mapnum=="2")
{
cout<<"Congratulations! You have found your map."<<endl;
}
else
{
cout<<"You have failed."<<endl;
system("pause");
return 0;
system("pause");
}
}