im a beginner at this still getting comfortable in programming c++. there are things i still can't wrap my mind in some of the subject. please help on this menu program , i have look through my other program that is working and kinda compare to it. like some of blank constructor idk how to rackle that, i have to write a program that simulates a handheld gaming system. a system can have power toggled so its either on or off. when the system is on, its volume level can be raised or lowerd. a system has minimum volume level of zero and a maximum volume level of 10. a system stores games.
void Game::DisplayGames()const;
{
Game games;
int i;
do//You start a do/while loop here, bu you have no "while" clause in your code.
{
cout << "The system comes with the following built-in games:\n";
cout << "0 - Generic Mascot Platformer\n";
cout << "1 - Overly Cute Kart Racer\n";
cout << "2 - Derivative Block puzzler\n";
cout << "\n\n Enter a game number: " << i << endl;
switch(games)
{
case 0:
cout << "Games set\n";
break;
case 1:
cout<< "Games set\n";
break;
case 2:
cout<< "Games set\n";
break;
default:
cout <<"\n Sorry, there is no game number"<< i<< "."<<endl;
cout << "try a game number between 0 and 2.";
} //There should be a while-clause like while(games > 2 && games <0)
}
Hope that helps. If you need any further help, please come back to us with a more detailed description of your problem