小弟初学者,一个小问题求解
delphi吧
全部回复
仅看楼主
level 2
哥一顶就火了
楼主
type
PByte=^Byte;
var
L:Longint;
W:Word;
B:Byte;
begin
W:=$1234;
Pointer(L):=@W;
B:=PByte(L);
WriteLn(Format('%x',[B]));
end.
输出结果是12还是34?为什么?
2012年09月18日 12点09分
1
level 10
昔日昔颜
低八位吧
2012年09月18日 15点09分
4
level 7
ghmbright
你可以去pascal吧讨论一下,那里人可能对这个更感兴趣一些~~
2012年09月19日 02点09分
5
哥一顶就火了
3Q
2012年09月19日 11点09分
level 10
5xHs
34
2012年09月21日 05点09分
6
1