Лабораторная работа: Динамические структуры данных
if vsp. R=nil then begin vsp. R: =a;
vsp: =a. R end else vsp: =vsp. R;
end
end;
function find (T: u; x: BT): boolean;
begin
if t=nil then find: =false
else if t. inf=x then find: =true
else if x <t. inf
then find: =find (t. L,x)
else find: =find (t. R,x)
end;
begin
clrscr;
s: ='';
b: =1;
while b<>0 do begin
clrscr;
writeln ('vvedite el dereva'); readln (e);
t: ='';
str (e,t);
s: =s + t + ' ';
insiter (tree,e);
writeln ('prodoljut? (Varianti-0) ');
readln (b);
end;
1: clrscr;
writeln (' chto vu xotite sdelat? ');
writeln (' 1 - proverka nayavnosti elementa');