Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tricmate()
- {
- node * temp = head;
- node * p = temp;
- for (int i = 0; i < 2; i++)
- p = p->next;
- while (temp != NULL && p != NULL)
- {
- removeNode(p);
- for (int i = 0; i < 2; i++)
- temp = temp->next;
- if (temp != NULL)
- {
- p = temp;
- for (int i = 0; i < 2; i++)
- p = p->next;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement