Реферат: Основы программирования
temp:=tcurr;
tcurr:=tcurr^.next;
end
else
if tcurr^.next=nil then
begin
temp^.next:=tcurr^.next;
tcurr:=temp;
tcurr^.next:=nil;
end;
end;
end;
Function Insert_head(first:pitem;p:pointer):pitem;
var tcurr, temp :pitem;
begin
new(temp);
temp^.inf:=p;
temp^.next:=first;
first:=temp;
end;
Procedure Insert(first:pitem;test:t_test; p:pointer);
var tcurr, temp : pitem;
begin
if test(tcurr^.inf)=true then
begin
new(temp);
temp^.inf:=p;
temp^.next:=tcurr^.next;
tcurr^.next:=temp;