Реферат: Основы программирования
tcurr:=first;
while tcurr <> nil do
begin
act(tcurr^.inf);
tcurr:=tcurr^.next;
end;
end;
Function Find(first:pitem; test:t_test; act:taction):pitem;
var tcurr:pitem;
begin
tcurr:=first;
while tcurr <> nil do
begin
if test(tcurr^.inf)=false then
tcurr:=tcurr^.next
else
begin
if test(tcurr^.inf)=true then
begin
act(tcurr^.inf);
tcurr:=tcurr^.next;
end;
end;
end;
end;
Procedure Deleting(first:pitem; test:t_test);
var tcurr,temp:pitem;
begin
tcurr:=first;