Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void tricmate()
  2. {
  3. node * temp = head;
  4. node * p = temp;
  5.  
  6. for (int i = 0; i < 2; i++)
  7. p = p->next;
  8.  
  9. while (temp != NULL && p != NULL)
  10. {
  11. removeNode(p);
  12.  
  13. for (int i = 0; i < 2; i++)
  14. temp = temp->next;
  15. if (temp != NULL)
  16. {
  17. p = temp;
  18.  
  19. for (int i = 0; i < 2; i++)
  20. p = p->next;
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement