원문정보
초록
영어
Counter controlled and condition controlled are main categories of iterative statements, with “for”, “while” and “do while” loops dominating the field. While there are clear distinctions between them, it is not uncommon for a programmer to practically convert a condition controlled loop to do counter controlled task or vice versa. For instance, there is a “while loop” that will be iterated a number of times or a “for loop” with an additional condition next to the counter checker. This paper proposes a new loop that will be both counter and condition controlled. The loop will include an in-built predefined counter and it will be able to iterate a user defined number of time, prior to checking the user defined condition. A detailed explanation and a C++ implementation of the proposed loop are included in this paper.
목차
1. Introduction
2. Iteration Statements in Programming Languages
3. The Proposed Loop
4. Implementation
5. Discussion
6. Conclusions and Future Work
References
