Advertisement
fiqriachmada

StructBaru

Apr 9th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void ambilBelakang(node *simpul)
  6. {
  7.     simpul->next=simpul->next->next;
  8. }
  9. void ambilDepan(node *simpil)
  10. {
  11.     node *hapus;
  12.     hapus=simpil->next;
  13.     while(hapus->next->next!=NULL)
  14.     {
  15.         hapus=hapus->next;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement