I think it's very difficult, indeed I think it's impossible, to think of anything you'd want to do forever.
我认为很难,其实我认为不可能,想出一件你希望永远做下去的事。
He will have to do battle with this temptation forever: the temptation offered by classical literature.
他将不得不永远与这种:,来自古典文学的诱惑战斗。
But whereas the other one was obviously forever, this allows you to specify a finite number of times that you wanna do something.
但又不同于“无限循环“,你可以根据需要,为它指定循环次数。
What I don't want your program to do is crash when that happens. Or run forever.
当这种问题出现时程序崩溃,或者一直运行下去。
When I do my best to imagine some kind of existence that would be desirable or attractive forever, it just doesn't work. It becomes a nightmare.
当我尽力想象一种,令人永远期望迷恋的存在时,根本想象不出,总是变成恶梦。
I can't think of any activity I'd want to do forever.
我想不出一样希望永远从事的活动。
Then we have to steal the code from earlier to do a forever loop, a while true loop and then I'm gonna go ahead and use that printf thing that we saw.
然后再借用先前的代码,做一个永久性的循环,即while循环,紧接着需要用到一个,之前我们看到过的printf函数。
So a loop or an infinite loop, because true is always true, there is no-- nothing on the screen that seems to change this keyword true, so this is actually a deliberate infinite loop, but so was that thing up top to forever say hi or whatever it is you wanted to do.
因此而出现死循环,屏幕上的这些语句无论怎么运行,都无法改变它为真的事实,这就是所谓的死循环,无论你想不想要,屏幕上都会不断打印出“hi“
应用推荐