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