Code:
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
int input;
cout<<"1. play game: ";//mabey no two dot's?
cout<<"2. Load game: ";
cout<<"3. play multiplayer: ";
cout<<"4. Exit: ";
cin>>input;
{
if(input==1)
cout<<"Play on";
else if(input==2)
cout<<"Your game is loading";
else if(input==3)
cout<<"Play multiplayer, your gonna go down";
else if(input==4)
cout<<"wooooos";
else
cout<<"program over";
}
getch();
return 0;
}
this should compile, what compiler are you using? Also you might want to try a switch statement
Code:
cin >> input;
switch (input) {
case 1:
cout<<"Play on";
break;
case 2:
cout<<"Your game is loading";
break;
case 3:
cout<<"Play multiplayer, your gonna go down";
break;
case 4:
cout<<"wooooos";
break;
default:
cout<<"program over";
}