Advertisement
pichumy

Untitled

Feb 1st, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. bool deleteFourth()
  2. {
  3. int count = 1;
  4. Node *hold;
  5. if(this->length < 4) return false;
  6. for(Node *temp=head; temp!=NULL; temp=temp->getNext())
  7. {
  8. if(count = 3)
  9. {
  10. hold = setNext(temp->getNext()->getNext())
  11. free(temp->getNext());
  12. temp = hold;
  13. return true;
  14. }
  15. }
  16. return false;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement