请输入您要查询的字词:

 

单词 do loop
释义
do loop

Computer
  • A counting loop in a program, in which a section of code is obeyed repeatedly with a counter taking successive values. Thus in Fortran,

    • DO 10 I = 1,100
    • 〈statements〉
    • 10 CONTINUE

    causes the 〈statements〉 to be obeyed 100 times. The current value of the counter variable is often used within the loop, especially to index an array. There are many syntactic variants: in Pascal and Algol-like languages the same basic construct appears as the for loop, e.g.

    • for i := 1 to 100 do
    • begin
    • 〈statements〉
    • end

    This kind of loop is a constituent of almost all programming languages (except APL, which has array operations defined as operators in the language).

    See also do-while loop.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/6 7:17:22