max val I'm not going to call the other max val here, because we know what happens when I do that.
我不打算调用其他,因为我们知道当,我这么做会发生什么。
I'm much better having an exception get handled at the time of input than to let that prop -- that value rather propagate through a whole bunch of code until eventually it hits an error 17 calls later, and you have no clue where it came from.
不是我期望的格式,这时我最好有一个异常处理,而不是让其传下去,这个值传到代码的整个分支,最终会导致一个错误17调用的发生,并且你不知道这个错误是哪里来的。
Now because among its contents is the prototype for print F, that is why, very simply, I can call print F without having to declare its prototype myself.
现在因为在它的内容中是printf的原型,这就是为什么我可以不声明printf函数的原型,而可以调用它。
OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.
首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。
So I don't want them to have to call something with two arguments.
所以我不希望它们,调用什么两个自变量。
No, I'd better call it.
不,我最好调用它。
to do sqrt, or square root-- no, I'm going to square root use sqrt, that's the name I'm using here-- square root a hundred different places in some piece of code. Without function, I'd have to copy that piece of code everywhere.
让我做一下准备,想象一下我要调用sqrt或者-,不,我会调用sqrt函数,这是我在这里用的名字,我得把这段代码到处复制。
I'll draw something from the distribution, so this is interesting, distribution I'm now calling self dot distribution, and remember this will be different for each stock.
我会从分布中读取一个值,这就是有趣的部分,我现在会调用self。,请记住每只股票都是不一样的。
Well, we certainly didn't know on day one how many times each of you was going to want to call get string, how many words a user might type when you call get string.
好的,当然我们不知道第一天你们,想要调用GetSting多少次,当你调用GetSting时,用户会输入多少单词。
应用推荐