rornoanparn

Untitled

Feb 26th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. void deleteFirst(List &L, address P) {
  2.     address Q;
  3.     P = first(L);
  4.     Q = first(L);
  5.     while (next(Q)!=first(L)){
  6.         Q = next(Q);
  7.     }
  8.     first(L) = next(first(L));
  9.     next(Q)=first(L);
  10.     next(P)=NULL;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment