• So now, henceforth, when you say, to declare a function, I am declaring a function here but down here am I quote unquote defining it or implementing it.

    从此以后,当你说,声明一个函数,我在这里声明了一个函数,但是到这里我定义它或执行它。

    哈佛公开课 - 计算机科学课程节选

  • printf That's not actually where someone implemented print F and related functions, rather, in dot H files, by convention, are prototypes.

    那实际不是有某人在哪里执行,相关函数,而是在,h文件中,按照惯例,它们是函数原型。

    哈佛公开课 - 计算机科学课程节选

  • Now this is not a particularly compelling pace just yet of implementing your own function.

    这里没有一个特别的强制性的步骤,来执行你自己的函数

    哈佛公开课 - 计算机科学课程节选

  • We don't have to worry about memory disappearing just because my function is done executing.

    我们不需要担心内存消失,因为我的函数已经执行了。

    哈佛公开课 - 计算机科学课程节选

  • It's the first thing that gets executed.

    他是开始执行的第一个函数

    哈佛公开课 - 计算机科学课程节选

  • You can certainly implement your own.

    你当然也可以执行你自己的函数

    哈佛公开课 - 计算机科学课程节选

  • So we hit the curly brace so the very bottom of the function and as soon as you hit that, the next line in the story is well, then we return to main and where are we executing in main?

    我们抵达花括号了,这是函数的末尾了,一旦到了那个地方,在下一行,然后返回到main函数中,在main中哪里开始执行

    哈佛公开课 - 计算机科学课程节选

  • So A gets 1, B gets 2, now the swap function itself starts executing line by line; so I declare a chunk of memory called temp.

    所以A等于1,B等于2,现在swap函数自己开始,一行一行地执行,所以我声明了,叫做temp的一块内存。

    哈佛公开课 - 计算机科学课程节选

  • X So here I'm declaring another variable called X, and this is totally legitimate because I already know that if I'm implementing a function like swap or increment, I can absolutely take input.

    这里我声明另一个变量,这个完全是合法的因为我已经知道,如果我执行一个像swap,或,increment的函数,我完全可以携带输入。

    哈佛公开课 - 计算机科学课程节选

  • But as soon as the most recently called function finishes executing, you have to take that tray off the stack in order to get at the previous function's memory, and once he's done executing, you have to take that one off and then what's left well then main.

    但是,一旦新的调用函数结束了执行,你必须从堆中把托盘拿掉,用来获得先前函数的内存,一旦他完成执行,你必须把那一块拿下来,然后剩下的是main函数

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定