PPersion=^TPersion;
TPersion=packed record
Name:string;
Sex:string;
Clasee:string;
end;
var
persion:TPersion;
PP:PPersion;
begin
FillChar(persion,SizeOf(TPersion),0);
persion.Name:=‘liujicai ‘;
persion.Sex:=‘2‘;
persion.Clasee:=‘1‘;
New(pp);
pp^:=persion;
ShowMessage(pp.Name);
Dispose(PP);
end;
时间: 2024-10-01 19:31:09