X
xiaoywh
Unregistered / Unconfirmed
GUEST, unregistred user!
例:
type
THead = packed Record
ID : longint;
Name: array [0..7] of char;
end;
PNode = ^TNode;
TNode = packed record
Head : THead;
Sex : byte;
Phone: array [0..21] of char;
HWND : DWord;
end;
var
pData: PNode;
begin
New(pData);
ShowMessage(IntToStr(SizeOf(pData)));
pData := nil;
end;
// 以此为例,提出问题为何SIZEOF没给给出正确的内存大小值? 正确值为39吧,但返回值却只有 4 为何????
急!
type
THead = packed Record
ID : longint;
Name: array [0..7] of char;
end;
PNode = ^TNode;
TNode = packed record
Head : THead;
Sex : byte;
Phone: array [0..21] of char;
HWND : DWord;
end;
var
pData: PNode;
begin
New(pData);
ShowMessage(IntToStr(SizeOf(pData)));
pData := nil;
end;
// 以此为例,提出问题为何SIZEOF没给给出正确的内存大小值? 正确值为39吧,但返回值却只有 4 为何????
急!