void SocReg::removePlayer(string teamName,string playerName) { Team *tPtr; // Search for team with given name tPtr=searchTeam(teamName); if(tPtr==NULL) // If team with given name does not exits, print failure message cout<<"The team \'"<<teamName<<"\' does not exist..."<<endl; else { // Try to remove player and print result if(!tPtr->removePlayer(playerName)) cout<<"The player \'"<<playerName<<"\' does not exist in team \'"<<teamName<<"\'..."<<endl; else cout<<"The player \'"<<playerName<<"\' has been removed from team \'"<<teamName<<"\'..."<<endl; } }