Реферат: Основы программирования
taction=procedure(p:pointer);
t_test=function(p:pointer):boolean;
Function New_item(p:pointer):pitem;
Function Make_item(dont:pitem; p:pointer):pitem;
Procedure Prosm(first:pitem;act:taction);
Function Find(first:pitem; test:t_test; act:taction):pitem;
Procedure Deleting(first:pitem;test:t_test);
Function Deleting_f_end(first:pitem; test:t_test):pitem;
Function Insert_head(first:pitem;p:pointer):pitem;
Procedure Insert(first:pitem;test:t_test; p:pointer);
Implementation
Function New_item(p:pointer):pitem;
var tcurr :pitem;
begin
new(tcurr);
tcurr^.inf:=p;
tcurr^.next:=nil;
end;
Function Make_item(dont:pitem;p:pointer):pitem;
var tcurr:pitem;
begin
new(tcurr^.next);
tcurr:=dont;
tcurr:=tcurr^.next;
tcurr^.inf:=p;
tcurr^.next:=nil;
end;
Procedure Prosm(first:pitem; act:taction);
var tcurr: pitem;