当前位置: 代码迷 >> 综合 >> Delphi @ ^
  详细解决方案

Delphi @ ^

热度:47   发布时间:2024-01-21 11:29:08.0

@:取址运算符;
var
int:integer;
p:^integer;
new(P);
int:=24;
p:=@int;
dispose(P);

^:指针的引用解析操作符;
var
pint:^integer;

new(pint);
showmessage(inttohex(integer(@pint),8);
pint^:=$ff;
showmessage(inttohex(pint^,4));

#:ASCII码值表示符;
const
tab_key=#9;//TAB键的ASCII值

总结:
^: 指针
@: 取址
#: ASCII码值表示符
$: 十六进制符

  相关解决方案