I don`t think thats what i mean, but here`s my code:
Code:
#include <iostream.h>
int main()
{
int input;
cout<<"This game simulates a rich life."<<endl;
1 cout<<"Input menu function"<<endl;
cout<<"1: Spend money."<<endl;
cout<<"2: Play a video game."<<endl;
cout<<"3: Drive around in a car"<<endl;
cout<<"4: Climb Mount Everest"<<endl;
cout<<"5: Fly around in a helicopter"<<endl;
cout<<"6: Kill yourself"<<endl;
cin>>input;
3
if (input==1)
{
cout<<"You buy a helicopter, a building, and a private island."<<endl;
goto 1;
}
else if (input==2)
{
cout<<"You turn on your Zcube and play for half an hour."<<endl;
goto 1;
}
else if (input==3)
{
cout<<"You drive around in your $900,000,000.95 limo."<<endl;
goto 1;
}
else if (input==4)
{
int action;
cout<<"You climb Mount everest. Now what?"<<endl;
2 cout<<"1: Shout:'I`m the king of the world!!!'"<<endl;
cout<<"2: Go back down"<<endl;
cin>>action;
if (action==1)
{
cout<<"I`m the king of the world!!!"<<endl;
goto 2;
}
else if (action==2)
{
goto 1;
}
else
{
cout<<"Please input menu functions only"<<endl;
goto 2;
}
}
else if (input==5)
{
cout<<"You fly around in your helicopter."<<endl;
goto 1;
}
else if (input==6)
{
goto 3;
return 0;
}
}
Do you know what i`m doing wrong here?