void MainMenu::OnAbout() { AboutMenu* myAbout = new AboutMenu(); if(myAbout == NULL) { perror("MainMenu::OnAbout()"); exit(EXIT_FAILURE); } myAbout->showMenu(); delete myAbout; }
void MainMenu::onAbout() { AboutMenu* myAbout = new AboutMenu(); myAbout->showMenu(); delete myAbout; }