Advertisement
volkovich_maksim

t_16_23_a_v1_volkovich

Nov 29th, 2015
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.38 KB | None | 0 0
  1. {Волкович Максим (volkovcih.maksim.s@gmail.com), 112гр., v1.0,
  2. описать процедуру, которая удаляет первый элемент списка L}
  3. type T=...;
  4.      list=^chain;
  5.      chain=record elem:T; next:list end;
  6. procedure delete(var L:list);
  7.      var s:list;
  8.      begin
  9.        s:=L;
  10.        L:=s^.next;
  11.        dispose(s);
  12.      end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement