可是dephi也太自信了吧,万一那一行代码有用的,呵呵,我的代码如下
label nextk;
var ar:array[1..30,1..2]of byte;
fl:array[1..32]of boolean;
i,k,po,m,hedx:integer; st:string;
begin
for i:=1 to 32 do fl:=true;
for k:=1 to 32 do//ËÑË÷ÿ¸ö½ÚµãµÄ×îСÍø¿×
begin
po:=1;//βָÕë
hedx:=1;//¿í¶ÈÓÅÏÈÍ·Ö¸Õë
ar[po,1]:=k;fl[k]:=false;
for i:=1 to 37 do
begin
if (ar[hedx,1]=toplogy[i,1]) and (not fl[toplogy[i,2]])and(toplogy[i,2]<>ar[hedx,1]) then//&Ecirc;&auml;&sup3;&ouml;
begin
inc(po);
ar[po,1]:=toplogy[i,2];
st:='';
while ar[po,1]<>k do begin st:=st+inttostr(ar[po,1])+',';po:=ar[po,2];end;
self.memo1.lines.add(st+inttostr(k));
//&Ccedil;&aring;&Agrave;í
for m:=1 to 32 do fl[m]:=true;
goto nextk;
end;
if (ar[hedx,1]=toplogy[i,2]) and (not fl[toplogy[i,1]])and(toplogy[i,1]<>ar[hedx,1]) then//&Ecirc;&auml;&sup3;&ouml;
begin
inc(po);
ar[po,1]:=toplogy[i,1];
st:='';
while ar[po,1]<>k do begin st:=st+inttostr(ar[po,1])+',';po:=ar[po,2];end;
self.memo1.lines.add(st+inttostr(k));
//&Ccedil;&aring;&Agrave;í
for m:=1 to 32 do fl[m]:=true;
goto nextk;
end;
if (ar[hedx,1]=toplogy[i,1]) and (fl[toplogy[i,2]]) then
begin
//&frac14;&Oacute;&Egrave;&euml;&para;&Oacute;&Aacute;&ETH;
inc(po);
ar[po,1]:=toplogy[i,2];
ar[po,2]:=hedx;
fl[toplogy[i,2]]:=false;
end;
if (ar[hedx,1]=toplogy[i,2]) and (fl[toplogy[i,1]]) then
begin
//&frac14;&Oacute;&Egrave;&euml;&para;&Oacute;&Aacute;&ETH;
inc(po);
ar[po,1]:=toplogy[i,1];
ar[po,2]:=hedx;
fl[toplogy[i,1]]:=false;
end;
end;
hedx:=hedx+1;//why not compiled??这一行死活不编译
//caption:=inttostr(hedx);//加上这一行的话上一行才编译,可是上面的代码明明用到了hedx,编译器却提示没有用?!!
nextk:caption:='a';
end;