rornoanparn

Untitled

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