单词
while 循环 do 执行 index 索引 bug 漏洞
debug 调试 equals 相等的 step 步骤 error 错误
while
do {} while;
1.循环结构条件结构由循环操作构成,只要·满足循环条件,循环操作就会反复执行;
2.使用循环解决问题的步骤:分析循环条件和循环操作,套用循环的语法·写出代码,
检查循环能否退出。
3.编写循环结构代码时注意:循环变量的初值,循环操作中对循环变量值得改变和循环条件间三者的关系;
确保循环次数正确,不要出现“死循环”。
4.while循环结构的特点是先判断,后执行。do while 循环结构的特点是先执行,再判断。
5.程序调试是满足暂时程序,观察变量和逐条执行语句等功能的工具和方法的总称。其主要方法·包括设置断点
,单步运行和观察变量。