L laijf Unregistered / Unconfirmed GUEST, unregistred user! 2010-03-01 #1 如何将A,B的值付给CvarA,B:byte;C:dword;beginA:=$88B:=$5C.....这里怎么写,小弟基础差那位老大教下万分感谢showmessage(inttohex(C,8))//最后要显示这个结果“00005C88”
如何将A,B的值付给CvarA,B:byte;C:dword;beginA:=$88B:=$5C.....这里怎么写,小弟基础差那位老大教下万分感谢showmessage(inttohex(C,8))//最后要显示这个结果“00005C88”
S smlabc Unregistered / Unconfirmed GUEST, unregistred user! 2010-03-01 #2 var A,B:byte; C:dword; P: PChar;begin A:=$88; B:=$5C ; P := @C; PByte(P)^ := A; PByte(P+1)^ := B; showmessage(inttohex(C,8));
var A,B:byte; C:dword; P: PChar;begin A:=$88; B:=$5C ; P := @C; PByte(P)^ := A; PByte(P+1)^ := B; showmessage(inttohex(C,8));