这些字段将跟踪已在循环中执行的迭代数,并检查该条件以确定何时结束。
These fields keep track of the number of iterations that have been performed in the loop, and check the condition to determine when to end.
然后,一个while循环迭代数据集,在一个方便的数组中存储信息以便将来进行显示。
A while loop then iterates through the dataset, storing the information in a convenient array for later display.
for - each循环:当迭代数组时,编译器生成归纳变量和标准的数组迭代语法。
For-each loop: When iterating over an array, the compiler generates an induction variable and the standard array iteration idiom.
应用推荐