so this is the part of my code that has an error:
int Mainmenu(){
system("cls");
int action;
char action1;
cout << "Welcome to my Quarter Project." << endl;
cout << "What would you like to learn more about?" << endl;
cout << "1. Medecine in the United States." << endl;
cout << "2. Medecine in russia." << endl;
cout << "3. Medecine in China." << endl;
cout << "4. Medecine in Australia." << endl;
cout << "5. Medecine in South Africa" << endl;
cout << "6. Medecine in Brazil." << endl;
cout << "7. What happens when a doctor commits malpractice" << endl;
cin >> action;
if (action == 1)cout << Unitedstates();
else if (action == 2) cout << Europe();
else if (action == 3) cout << China();
else if (action == 4) cout << Australia();
else if (action == 5) cout << Africa;
else if (action == 6) cout << Brazil();
else if (action == 7) cout << malpractice();
else {cin >> action;}
}
it says that:
warning the address of int Africa(); will always be true
and when i go into my program and run it when i try and go to south africa it just ends the program...