I
ideafrog
Unregistered / Unconfirmed
GUEST, unregistred user!
我错在哪里了?
type
PTest =^Test;
test =Record
t1: integer;
t2: char;
end
//结构定义
procedure TForm1.Button1Click(Sender: TObject);
var
iTest: array[0..9] of Ptest
i: integer;
begin
for i :=0 to 9 do
begin
iTest^.t1 :=i
//这里就错了
iTest^.t2 :=char(i);
end;
showmessage(intToStr(iTest[1]^.t1));
end;
type
PTest =^Test;
test =Record
t1: integer;
t2: char;
end
//结构定义
procedure TForm1.Button1Click(Sender: TObject);
var
iTest: array[0..9] of Ptest
i: integer;
begin
for i :=0 to 9 do
begin
iTest^.t1 :=i
//这里就错了
iTest^.t2 :=char(i);
end;
showmessage(intToStr(iTest[1]^.t1));
end;