更新时间:2023-02-20 11:17:32
代码充满错误,永远无法编译.
The code is full of errors and would never compile.
几乎所有的 if 语句都是无效的
Almost all if-statements are invalid
if(payment[j]=1620 and payment[j]=1980) then
if(payment[j]=1620 and payment[j]=1980) then
and"运算符总是首先被评估,这会导致逻辑比较1620 and payment[j]"(这不是一个有效的语法).
The "and" operator is evaluated always first which results in the logical comparison "1620 and payment[j]" (which is not a valid syntax).
你必须像这样把每个比较都放在括号里:
You have to put every comparison into brackets like this:
if(payment[j]=1620) and (payment[j]=1980) then
4.设置 j:=j+1;你究竟期望会发生什么??我想你只是想增加 j
4. set j:=j+1; What exactly do you expect should happen?? I think you just want increase j
j:=j+1;
可能还有很多其他...
And probably many others...