"On this wall here, he had just started to do a prototype of something called The Alice Comedies."
VOA: standard.2010.02.26
printf I have my includes, standard IO's; so I can use print F, but then I had this thing called a prototype.
我包含了标准输入输出文件,所以我可以使用,然后我有这个原型。
For some reason, at the top of this file, I've also included what I've called a function prototype.
因为一些原因,在这个文件顶端,我包含了一个函数原型。
The knight's move--which is just a playful way of describing where the window is, right-- the knight's move is nonetheless a kind of wound or damage. So, even as it's the prototype for originality, it's also something very disturbing and harmful.
一位骑士走过,这只是开玩笑地描述,窗户的位置,对,骑士的走过不可能造成,受伤或损害,所以,即使作为独创性的模板,它还是包含一些干扰和有害的成分。
We don't need to know what the particular notes are, but let's look at this just for a moment because it works well as a prototype of melody.
我们不必确切地知道这些音符是什么,但是还是让我们来看一下,因为它简直就是旋律的典范
Here in functions prototype it just means the address of.
这个函数原型中,它指的意思地址。
So up top, the function prototype.
在顶端,那个函数原型。
What's the prototype of a function?
什么是一个函数的原型呢?
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函数的原型,而可以调用它。
As an aside, why are you able to use print F without writing out a prototype for it?
此外,为什么我们不用写printf的函数原型,而可以使用它呢?
So putting back that prototype allows me to compile this, because I'm saying proactively to the compiler hey, you're going to see a function called increment.
把那个原型放回原处使我能够编译它,因为我提前向编译器打了招呼,将看到一个叫做increment的函数。
Right. So main calls foo, foo is declared, but wait a minute, void foo void I need my prototype; so void foo, void.
对,main调用foo,foo被声明了,但是等一等,我需要我的原型,所以。
And now the point just to tease apart, I can't erase that, let's fix, so now the one detail that's worth pointing out is * that this here the * in swap's prototype and the * here in swap's prototype do not mean go there.
现在我们要梳理一下,我不能清除那个,让我们修正一些,需要指出的一个细节是,在swap原型中的,意思不是定位到那个地方。
It may mean something different and this is sort of just stupid re-use of syntax although frankly it wouldn't really be much fun to have yet a symbol so they went with the same symbol which is pretty reasonable in the context *a of a function prototype this just means *a expect A to be the address of an int and expect B to be the address of an int.
这里的意思有点不同,这是为了重使用的目的,虽然这个符号没有什么意义,所以在函数原型中,他们就使用了相同的符号,这只是表示,期望,是一个int型的地址,期望b是一个int型的地址。
应用推荐