如何才能跳出这个循环?
跳出这个恶性循环只有一个方法,作出抉择。
The only way to move out of this cycle, is to make a choice.
我发现跳出这个困难发现一条解决途径也并不是非常困难。
I found that it was not really very hard to see a way out of this difficulty.
Which means, next time through the loop, that's going to pop out and return an answer.
循环会跳出并返回这个答案,如果不相等的话。
So we need something more and the kind of things we can see more: we can think about contracts; we can think about treaties between countries; we can think about regulation.
我们需要跳出这个思维定势,我们可以考虑制定协约,我们可以考虑各国之间签订协约,我们可以考虑制定规章制度
And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.
因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。
应用推荐