while-loop 循环
while-loop structure 先判定型循环结构
do-while loop 循环 ; 重复叙述
LOOPE LOOP while Equal 在相等时循环
LOOPNE LOOP while Not Equal 在不相等时循环
LOOPZ LOOP while Zero 在等于零时循环
loopnz loop while not zero 在不等于零时循环
loop while 循环
以上来源于: WordNet
首先是 while 循环。
The key part of that is that WHILE loop.
关键的部分是这个while循环。
Listing 7. Pseudocode for the while loop.
清单7 . while循环的伪代码。
The difference with the do while loop, as the syntax kind of suggests, is that this construct is going to do something no matter what.
作为建议的语法,do,while循环的不同之处,是这个结构不管怎么样,它会做一些事情。
At the end of the day, you can implement the exact same program using a while loop that you can using a for loop, it's just your code is going to look slightly different.
最终,你可以执行这个程序,再使用for循环的地方使用while循环,这只是使你的代码看起来稍微有点不同。
Ah ha, it goes into that accept portion, prints out a message, and goes back around the while loop to say try again. And it's going to keep doing this until I give it something that does serve as a float.
他会说输入一个浮点数,啊哈,它就到了那段处理代码,打印出消息,然后回到while循环让我们再输一次,它会持续这么做直到它接受到一个浮点数。
应用推荐