做自己的快乐人

路漫漫其修远兮,吾将上下而求索

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

6、1 while 语句

6、2 循环的执行阶段

Iteration, Loop test, loop exit, Termination condition

6、3 使用while语句的循环

Count-Controlled Loops and Event-Controlled Loops

Looping Subtasks:

Counting, Summing, Keeping track of a previous value

6、4 如何设计循环


What is the condition that ends the loop?

How should the condition be initialized?

How should the condition be updated?

What is the process being repeated?

How should the process be initialized?

How should the process be updated?

What is the state of the program on exiting the looping?

6、5 内装的逻辑

posted on 2010-08-21 17:39  做自己的快乐人  阅读(194)  评论(0编辑  收藏  举报