begin
new(p);
p.a.x:=200;
p.a.y:=0;
p.b.x:=400;
p.b.y:=400;
p.c.x:=0;
p.c.y:=400;
p.next:=pend;
pend:=p;
pbegin:=p;
Image1.Canvas.MoveTo(p.a.x,p.a.y);
Image1.Canvas.LineTo(p.b.x,p.b.y);
Image1.Canvas.LineTo(p.c.x,p.c.y);
Image1.Canvas.LineTo(p.a.x,p.a.y);
end;
procedure Tform1.pop();
begin
a:=pbegin.a;
b:=pbegin.b;
c:=pbegin.c;
pbegin:=pbegin.next;
end;
procedure Tform1.push(a,b,c:toch);
begin
new(p);