The prototype is just its return value, its name, and its arguments, if any.
原型就是他的返回值,它的名字,它的参数之类的。
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.
一位骑士走过,这只是开玩笑地描述,窗户的位置,对,骑士的走过不可能造成,受伤或损害,所以,即使作为独创性的模板,它还是包含一些干扰和有害的成分。
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函数的原型,而可以调用它。
I have to change the prototype of this function to say that swap no longer takes an int per se or another int per se, but rather it takes two pointers, two ints, and in fact, it's on the very last page if you're still flipping.
我改变了这个函数的原型,来说明swap不再携带那两个int数本身,而是携带两个指针,两个整型数指针,实际上,它是在最后那页上。
For some reason, at the top of this file, I've also included what I've called a function prototype.
因为一些原因,在这个文件顶端,我包含了一个函数原型。
It's a little redundant, admittedly, but I include not the same function, but just its prototype, as I say in the comment here.
它确实是有点长的,但是我包含的不是同一个函数,而只是一个原型,就像我这里的注释所说的。
My prototype, again, so that I can use it later increment without the compiler wondering what is this increment that you're referring to because it's not otherwise been declared.
我的函数原型,再次强调,我可以以后使用它,这样编译器就不会疑惑这个你提及的,是什么,因为是没有,被声明的。
The only thing that you have to put in the function prototype, ; again, is three things; one, the name of the function; the return value; and its arguments.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字;,返回值,和它的参数。
Here in functions prototype it just means the address of.
这个函数原型中,它指的意思地址。
So up top, the function prototype.
在顶端,那个函数原型。
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的函数。
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型的地址。
应用推荐