Var ct:word=1;
//全局procedure get2no(var n1,n2:integer);label _done;
begin
n1:=-1;
n2:=-1;
if ct>11 then
begin
_done: 取完了! exit;
end;
inc(ct);
n1:=arr[ct];
inc(ct);
if ct>11 then
goto _done;
n1:=arr[ct];
end;
procedure Get2Num(Anum:array of integer;var N1,N2:integer);var i,H,L:integer;
begin
H:=High(Anum);
L:=Low(Anum);
N1:=-1;
N2:=-1;
if C > H then
exit;
//C为全局变量 if C < L then
C:=L;
N1:=Anum[C];
inc(C);
if C > H then
exit;
N2:=Anum[C];
inc(C);
end;