So,if we get down to brass tacks, we can prevent ripoffs and bogus ways of earning money in that jungle out there.
VOA: special.2010.05.16
And it's just gathering together the multiplications while counting down the exponent. And you can see it when we get down to the end test here, we're going to pop out of there and we're going to return the answer.
这个方法就是通过乘法,来一个一个的减小指数,可以看到,最后面的结果测试,我们会在这里退出,然后返回答案。
Let me come down hazardously off this stage, and figure out-- Let's get the mics up a bit for a second, we can get some mics ready.
我先走下讲台看看各位,麻烦准备好麦克风
Then it's sort of...you can get out of hand I think India so far is leaning also towards bringing down barriers and opening their sight of economy as well.
这样的话,事情就比较棘手,我认为印度至今还是倾向于,降低壁垒,从长远考虑保持开放经济。
People can get hung up on sort of hunting these things down, and stamping them out, one at a time. And it's a little bit like playing Whack-a-Mole. Right?
我们可能会一次一个的去发现,这个bug并且消灭它,这有点像打鼹鼠对不对?,不停的有鼹鼠跳起来?
All right, we're-- well actually, I should say that better, we first check to see, is x 0 greater than or equal to zero, if it's not, then we come down here and we print something out, otherwise we run through a little loop to get the answer, and then we check it and we spit something out.
然后我们运行一个小循环,好了,我们现在来看看,如果x≥0或者x<,我们看这儿,我们会输出一些内容,或者我们运行一个小循环来获取答案,然后我们检验一下,然后得到结果。
But notice what this does. The first thing it does is, it says, let's check and make sure x is greater than or equal to 0. If it isn't, notice what's going to happen. None of that block is going to get executed, and it's going to come down here and print out a useful piece of information, which says, hey, you gave me a negative number. I don't know how to do this.
做的是和以前一样的事情,但是注释它做了什么,第一件做的事情就是,程序说,要去检查并且确信x是大于等于0的,如果不是的话,请注意会发生什么,下面的代码都不会被执行,程序会到这里来然后显示一些有用的信息,信息会说,嘿,你给了我一个负数,我不知道该怎么弄这个了。
应用推荐