Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Team::addPlayerToTeam(SeniorPlayer addingPlayer) {
- if (seniorPlayers != NULL) {
- seniorPlayers->player = addingPlayer;
- seniorPlayers->next = NULL;
- }
- else {
- struct PlayerStruct *temp = seniorPlayers;
- while (temp)
- temp = temp->next;
- temp = new PlayerStruct;
- temp->player = addingPlayer;
- temp->next = NULL;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment