X xujiancai Unregistered / Unconfirmed GUEST, unregistred user! 2000-08-13 #2 使用动态数组吧,很方便,自己设定。 var A, B: array of Integer; begin SetLength(A, 1); SetLength(B, 1); A[0] := 2; B[0] := 2; end;
使用动态数组吧,很方便,自己设定。 var A, B: array of Integer; begin SetLength(A, 1); SetLength(B, 1); A[0] := 2; B[0] := 2; end;
W wind_cloudy Unregistered / Unconfirmed GUEST, unregistred user! 2000-08-13 #3 动态数组的使用方法如下: var A : array of array of string; I, J : Integer; begin SetLength(A, 10); for I := Low(A) to High(A) do begin SetLength(A, I); for J := Low(A) to High(A) do A[I,J] := IntToStr(I) + ',' + IntToStr(J) + ' '; end; end;
动态数组的使用方法如下: var A : array of array of string; I, J : Integer; begin SetLength(A, 10); for I := Low(A) to High(A) do begin SetLength(A, I); for J := Low(A) to High(A) do A[I,J] := IntToStr(I) + ',' + IntToStr(J) + ' '; end; end;
J jeffzxc Unregistered / Unconfirmed GUEST, unregistred user! 2000-08-13 #4 var aa:array[0..4,0..5]of integer; i,j:integer; begin i:=High(aa) //返回第一维 j:=High(aa[1]) //返回第二维 end;
var aa:array[0..4,0..5]of integer; i,j:integer; begin i:=High(aa) //返回第一维 j:=High(aa[1]) //返回第二维 end;
S sprite Unregistered / Unconfirmed GUEST, unregistred user! 2000-08-31 #6 j:=High(aa[1])可以的呀 jeffzxc的方法没错