Code:#include <iostream> using namespace std; int mMenu(); int playgame(); int about(); int main() { int mMenu(); { int selection; system("CLS"); cout << "1. Play Game" << endl; cout << "2. About Game" << endl; cout << "3. Exit" << endl; cin >> selection; switch (selection){ case 1: system("CLS"); system("PAUSE"); int playgame(); break; case 2: system("CLS"); system("PAUSE"); int about(); break; case 3: return 0; break; default: system("CLS"); cout << "INCORRECT" << endl; system("PAUSE"); return 0; break; } int about(); { system("CLS"); cout << "This is what the game is about" << endl; } int playgame(); { system("CLS"); cout << "This is the game" << endl; } cin.get(); cin.ignore(); } }
When I go to run it, and go to about game, it comes up with the cout from playgame();. I dont know how to stop it from doing that.