保
保龙
Unregistered / Unconfirmed
GUEST, unregistred user!
如下 P.b1:='aaa';
与 P^.b1:='aaa';
“它”俩有什么不同?[]
procedure TForm1.Button15Click(Sender: TObject);
type
pt=^bb;
bb=record
b1:string;
b2:integer;
end;
var
pt;
begin
New(p);
{ P^.b1:='aaa';
P^.b2:=888;
showmessage(p^.b1);
showmessage(inttostr(p^.b2));
//ͬÑù½á¹û
}
P.b1:='aaa';
P.b2:=888;
showmessage(p.b1);
showmessage(inttostr(p.b2));
end;
与 P^.b1:='aaa';
“它”俩有什么不同?[]
procedure TForm1.Button15Click(Sender: TObject);
type
pt=^bb;
bb=record
b1:string;
b2:integer;
end;
var
pt;
begin
New(p);
{ P^.b1:='aaa';
P^.b2:=888;
showmessage(p^.b1);
showmessage(inttostr(p^.b2));
//ͬÑù½á¹û
}
P.b1:='aaa';
P.b2:=888;
showmessage(p.b1);
showmessage(inttostr(p.b2));
end;