Guest User

Untitled

a guest
Apr 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void Team::addPlayerToTeam(SeniorPlayer addingPlayer) {
  2. if (seniorPlayers != NULL) {
  3. seniorPlayers->player = addingPlayer;
  4. seniorPlayers->next = NULL;
  5. }
  6. else {
  7. struct PlayerStruct *temp = seniorPlayers;
  8. while (temp)
  9. temp = temp->next;
  10. temp = new PlayerStruct;
  11. temp->player = addingPlayer;
  12. temp->next = NULL;
  13. }
  14.  
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment