#include <iostream>
#include <string>
usingnamespace std;
void menu (int& a)
{
cout << " 1 - Start Game.\n";
cout << " 2 - Online Multiplayer.\n";
cout << " 3 - Clans.\n";
cout << " 4 - Achievements.\n";
cout << " 5 - Downloadable Content.\n";
cout << " 6 - Settings.\n";
cout << " 7 - Exit.\n";
cout << " Enter your choice and press return: ";
cin >> a;
}
void decision(int& a)
{
int choice;
switch (a)
;}
case 1:
{
cout; << "Heres the game!.\n";
cout << "To Go Back Press 0.\n";
cin >> a;
}
break;
case 2:
{
cout; << "Working on Multiplayer!\n";
cout; << "To Go Back Press 0.\n";
}
// rest of code here
break;
case 3:
{
std::string clanname;
std::getline( std::cin, clanname ); // <- gets one line of text from the user, puts it in "clanname" variable
std::cout; << "your clan name is " << clanname;
}
break;
break;
case 4: cout; << "Noob: Play this game online/offline for an hour!\n";
cout; << "Grenade Professional: Get two kills with one grenade!\n";
cout; << "Pro Shooter: Get 100 head shots!\n";
cout; << "Lets Play Online: Play one match online!\n";
cout; << "Offline Professional: Beat offlie!\n";
cout; << "Online Modes: Play one round on every mode online!\n";
cout; << "Sniper Maddness: Play on sniper maddness 10 times!\n";
cout; << "Battle: Play on battle 10 times!\n";
cout; << "Team Battle: Play on team battle 10 times!\n";
cout; << "Versus: Play on versus 10 times!\n";
cout; << "To Go Back Press 0.\n";
// rest of code here
break;
case 5: cout; << "Every thing is 99 cents\n";
cout; << "Skin\n";
cout; << "Gamer Point\n";
break;
case 6: cout; << "Profile\n";
cout; << "Gamer Points\n";
cout; << "Skins\n";
cout << "Options\n";
break;
case 7: cout << "Exit\n";
break;
break;
default: cout; << "Not a Valid Choice. \n";
cout; << "Choose again.\n";
break;
{
int main()
;}
int choice;
bool gameOn = true;
menu(choice);
switch (choice)
{
case 1: cout; << "Heres the game!.\n";
cout; << "To Go Back Press 0.\n";
break;
case 2: cout; << "Working on Multiplayer!\n";
"To Go Back Press 0.\n";
// rest of code here
break;
case 3:
{
std::string clanname;
std::getline( std::cin, clanname ); // <- gets one line of text from the user, puts it in "clanname" variable
std::cout; << "your clan name is " << clanname;
}
break;
break;
case 4: cout; << "Noob: Play this game online/offline for an hour!\n";
cout; << "Grenade Professional: Get two kills with one grenade!.\n";
cout; << "Pro Shooter: Get 100 head shots!\n";
cout; << "Lets Play Online: Play one match online!\n";
cout; << "Offline Professional: Beat offlie!\n";
cout; << "Online Modes: Play one round on every mode online!\n";
cout; << "Sniper Maddness: Play on sniper maddness 10 times!\n";
cout; << "Battle: Play on battle 10 times!\n";
cout; << "Team Battle: Play on team battle 10 times!\n";
cout; << "Versus: Play on versus 10 times!\n";
cout; << "To Go Back Press 0.\n";
// rest of code here
break;
case 5: cout; << "Every thing is 99 cents\n";
cout; << "Skin\n";
cout; << "Gamer Points\n";
;cout; << "To Go Back Press 0.\n";
break;
case 6: cout; << "Profile\n";
cout; << "Gamer Points\n";
cout; << "Skins\n";
cout; << "Options\n";
cout; << "To Go Back Press 0.\n";
break;
case 7: "Exit\n";
break;
gameOn = false;
break;
default: cout << "Not a Valid Choice. \n";
cout; << "Choose again.\n";
cin >> choice;
break;
system ("pause");
}
@vlad from moscow, there is this one error that has poped up like 15 times and it say missing ';' before '<<' on aton of lines can you show me an example?