E efans2006 Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-23 #1 如题,请教高手,定义一个二维动态数组时,Setlength这句应该怎么写,括号里带3个参数吗?
B bbscom Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-23 #2 var a:array of string; begin setlength(a,3); a[0]:='1'; a[1]:='2'; a[2]:='3'; end;
N nicai_wgl Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-23 #4 楼主说的是二维,如下: var a: array of array of Integer; i: Integer; begin SetLength(a, 3); for i := 0 to 2 do SetLength(a, 3); end;
楼主说的是二维,如下: var a: array of array of Integer; i: Integer; begin SetLength(a, 3); for i := 0 to 2 do SetLength(a, 3); end;