相关疑难解决方法(0)

为什么在数组名称后面有圆括号和圆点而不是括号?

访问数组中的元素时,使用方括号,如下所示:

{'X is an int and Numbers is an int array'}
X := Numbers[8];
Run Code Online (Sandbox Code Playgroud)

但是,在阅读其他人的代码时,我有时会发现以下语法:

{'PBox , SBox1 , SBox2 are arrays of int , And X,Y are ints'}
Result := Result or PBox(.SBox1[X] or SBox2[Y].);
Run Code Online (Sandbox Code Playgroud)
  1. 在数组名称后面加括号是什么意思PBox(someNumber)?这是访问数组元素的另一种方法吗?
  2. 什么是"." 在SBox1之前和SBox2之后是什么意思?SBox1和SBox2都是阵列.代码编译没有错误,但我不知道那些点是什么.

delphi syntax

7
推荐指数
1
解决办法
488
查看次数

标签 统计

delphi ×1

syntax ×1