See if we can find it here. And notice, by the way, that I commented out the previous debugging line, rather than got rid of it.
我们再去从它们的中间开始尝试,看看我们能不能发现问题源,顺便说一下,请注意。
And so, in fact, the version that I commented out which is also in your handout and I'm now going to uncomment, let's get that one out, get rid of this one-- notice the only change.
所以事实上,我之前注释掉的版本,你们的讲义上也有,我打算把注释去掉,我们把他拿出来,把这个丢到一旁,注意下唯一的改变。
I happen to have it commented out, right?
我正好把它注释了?
Up on the screen, I've got-- I commented it out, but I've got a piece of code that you've seen before, right up here. OK?
我现在在大屏幕上标出来的,是你们以前看过的一段代码,就在这儿?
We're checking the end test and incrementing, actually I was going to, I commented that out for a reason you'll see in a second, but I, normally I would keep this on, which would let me, at each step, see what it's doing. If I ran this, it would print out each step. Which is helping me make sure that it's incrementing the right way.
对不对?进行终结测试然后递增,实际上我要,因为某些你们,马上要明白的原因我把这里注释了,但是我通常会一直这么做,这样能让我看到每一步都做了什么,如果我运行这个程序,它会在每一步都,进行显示,这能帮助我让我确信程序是,在以正确的方式递增。
应用推荐