$可以作为编译器指示字,{$R *.DFM}就是一个例子。
$或者配合数字表示16进制的数字,0BAD4H = $BAD4。The @ operator returns the address of a variable, or of a function, procedure, or method; that is, @ constructs a pointer to its operand.
利用@可以返回变量、函数、过程或方法的地址。^一般配合指针使用
例:
1 var
2 X, Y: Integer; // X and Y are Integer variables
3 P: ^Integer; // P points to an Integer
4 begin
5 X := 17; // assign a value to X
6 P := @X; // assign the address of X to P
7 Y := P^; // dereference P; assign the result to Y
8 end;
$或者配合数字表示16进制的数字,0BAD4H = $BAD4。The @ operator returns the address of a variable, or of a function, procedure, or method; that is, @ constructs a pointer to its operand.
利用@可以返回变量、函数、过程或方法的地址。^一般配合指针使用
例:
1 var
2 X, Y: Integer; // X and Y are Integer variables
3 P: ^Integer; // P points to an Integer
4 begin
5 X := 17; // assign a value to X
6 P := @X; // assign the address of X to P
7 Y := P^; // dereference P; assign the result to Y
8 end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货