rornoanparn

Untitled

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