A
Archerfl
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码:
type
TMyR = record
a: real;
c: char;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(IntToStr(SizeOf(TMyR)));
end;
结果显示为16,为什么呢?还有在Project->Compiler->Record field alignment做什么的,
如何用呢?
type
TMyR = record
a: real;
c: char;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(IntToStr(SizeOf(TMyR)));
end;
结果显示为16,为什么呢?还有在Project->Compiler->Record field alignment做什么的,
如何用呢?