Delphi中常量如何表示?(10分)

  • 主题发起人 WilliamGui
  • 开始时间
W

WilliamGui

Unregistered / Unconfirmed
GUEST, unregistred user!
如何表示十六进制数用$吗? 那二进制数,八进制数呢?
 
yes, $ represents hex.
const END_FLAG = $FF;

octal and binary ?
Just represent them in decimal or hex. Though they look different, they are considered
the same by the conputer. eg. 0xff=255
 
好象没有直接的这两表示。
 
只有十六进制的
$FF就是十进制的255。
其它两个进制自己去转化吧。
 
有了16进制,2进制和8进制不就出来了吗?
 
IntToHex,IntToBin,BinToHex
在计算机里都是二进制,需要转换吗?
 
我有段代码,这样看代码会方便很多
 
接受答案了.
 
顶部