Advertisement
volkovich_maksim

t_17_11_v1_volkovich

Dec 15th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. procedure copy(T:tree);
  2. begin
  3.     if T<>nil then
  4.          begin
  5.             new(T^);
  6.             T^^.elem:=T^.elem;
  7.             copy(T^.left,T^^.left);
  8.             copy(T^.right,T^^.right);
  9.             {T^^.right:=nil;
  10.             T^^.left:=nil;}
  11.          end;
  12.     T^:=nil;
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement