Modify your main menu as follows:
int main()
{
while(1)
{
printIntro();
mainMenu();
printOutro();
}
return 0;
}
And get rid of cout << mainMenu();
in printOutro()
2
solved Program closes after running twice [closed]