// Pick a game menu
#include<iostream>
usingnamespace std;
void playGameA(); // this is a 'protoptype' for the complete function below
void playGameB();
int main ()
{
//open of main
int select;
cout << " Please type in one number : \n\n\t\t1 for GAME A \t\t2 for GAME B"<< endl;
cin >> select;
switch (select)
{
//open of switch
case 1:
cout << "You have selected GAME A " ;
playGameA();
break;
case 2:
cout << " You have selected GAME B " ;
playGameB();
break;
default:
cout << "You entered a wrong number" << endl;
} // end of switch
return 0;
} //end of main
void playGameA()
{
cout << "\n One day I'll put game A code here" << endl;
}
void playGameB()
{
cout << "\n One day I'll put game B code here" << endl;
}
Just filling it out to hopefully add to what Ganado has written.