Question: EXERCISES 1. Improve the Lobby class from the Game Lobby program by writing a friend fun of the Player class that allows a Player object

EXERCISES 1. Improve the Lobby class from the Game Lobby program by writing a friend fun of the Player class that allows a Player object to be sent to cout. Next, update the function that allows a Lobby object to be sent to cout so that it uses your new fun for sending a Player object to cout. 2. The Lobby: : AddPlayer) member function from the Game Lobby program is inefficient because it iterates through all of the player nodes to add a new player to the end of the line. Add an m_pTail pointer data member to the Lobby class that always points to the last player node in the line and use it to more efficiently add a player. 3. What's wrong with the following code? #1 nclude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
