首页    期刊浏览 2024年05月17日 星期五
登录注册

文章基本信息

  • 标题:Proposing a New Hybrid Controlled Loop
  • 本地全文:下载
  • 作者:George Tsaramirsis ; Salam Al-jammoor ; Seyed M. Buhari
  • 期刊名称:International Journal of Software Engineering and Its Applications
  • 印刷版ISSN:1738-9984
  • 出版年度:2014
  • 卷号:8
  • 期号:3
  • 页码:203-210
  • DOI:10.14257/ijseia.2014.8.3.18
  • 出版社:SERSC
  • 摘要: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.
  • 关键词:iterative statements; loop; hybrid control loop
国家哲学社会科学文献中心版权所有