我的意思是当(25,25)时,就...... if ...(25,25) then ........ 明白了吗?
var ArrayInt: array [0..49][0..24] of Integer i,j:integer; begin ...//初始化数组 result:=false; for i:=0 to 49 do if ArrayInt[i]=25 then begin for j:=0 to 24 do if ArrayInt[i][j]=25 then begin result:=true;//成功 break; end; break; end; end;
if ...(25,25) then
........
明白了吗?
ArrayInt: array [0..49][0..24] of Integer
i,j:integer;
begin
...//初始化数组
result:=false;
for i:=0 to 49 do
if ArrayInt[i]=25 then
begin
for j:=0 to 24 do
if ArrayInt[i][j]=25 then
begin
result:=true;//成功
break;
end;
break;
end;
end;