And that first one is init this kind of interesting thing, it's two underbars, init, and two underbars. Underscores, I guess is the right way to say it, not underbars.
然后第一行代码是很有趣的东西,这是两个下划线,然后再有两个下划线,下面的划线,我认为应该这么说,而不是下划线。
Well, the first line of code, I'll fix the purple next time around so it's more legible.
第一行代码,我用紫色标记,这样增加了可读性。
First line says, 0 if i is 0, that means I'm looking at the very last element.
第一行的意思是,如果i的值是,就意味着我看到的,是最后一个元素。
For row one, we're increasing, as we should, across the row.
对于第一行,我们是在升高,和我们预想的沿行的规律一样。
It's okay. So this first line of code, I will get it started but then I'm gonna have you take over and actually instruct Philip what to do here.
第一行代码就从这里开始,接下来我会让你,接管并指导飞利浦。
So this first line of code, and some of this again we'll be rehashed but at least you can delight in the awkwardness that is this demonstration.
因此,第一行代码,有些地方我们需要重新处理下,但至少看到这次,笨拙的演示你会很高兴。
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 line 1, I've numbered the lines just for the sake of discussion.
因此,第一行,这些行,我已经编号以方便讨论。
Line 1 is creating what we'll call a variable.
第一行创建了变量。
The standard library, that first line of code, it's not strictly necessary but any time you use a function, a tool that someone else wrote that lives in that so called library, you do need that include line as we'll see.
标准库函数--第一行代码,严格来说,不是每次都要写的,但是一旦你调用某个别人写,的函数,而这个函数又恰巧位于标准库里面,你就要像我们看到的这样,把它include进去。
But what looks like this orange block as of now in Scratch, add orange to your so called inventory, well, it's gonna take at least two lines of code in C to actually create the inventory array with this first line and then put something like the word orange inside of it.
就好比Scratch里面橘色的这一块,把“桔子“加到所谓的“清单“里面去,在C语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
应用推荐