【发布时间】:2023-10-22 04:27:01
【问题描述】:
我有这部分代码。我的问题是变量 i: 1..10; 是什么以及我要声明什么。谢谢
type
Str25 = String[25];
TBookRec = Record
Title, Author, ISBN : Str25;
Price : Real;
End;
Var
BookRecArray : Array[1..10] of TBookRec;
tempBookRec : TBookRec;
bookRecFile : File of TBookRec;
i : 1..10;
【问题讨论】:
-
i是 1 到 10 之间的整数(包括端点)。因此,i是一个可以具有以下值之一的变量:1、2、3、4、5、6、7、8、9 或 10。请参阅 documentation。 -
非常感谢,你救了我