Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void deleteLast(List &L, address P) {
- address Q;
- Q = first(L);
- while (next(next(Q))!=NULL){
- Q = next(Q);
- }
- next(Q)=P;
- next(Q)=NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement