• Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.

    正如字面意义上说的,从这个函数返回,然后取得下一个表达式的,并把这个作为整个计算的结果返回

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • It's totally legit to cull a function, get back a value, do nothing with it other than compare it to another value.

    挑选一个函数是完全合法的,返回一个,用它来做些事情而不是用它与其它的比较。

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

  • PROFESSOR: And so in this case, it's using the same piece, but it's returning that middle value that says they're actually the same.

    教授:那么实际在这个例子中,我们用的是同一个函数,它返回了中间的也就是,0来表明着两个参数。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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.

    你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字;,返回值,和它的参数。

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

  • So functions and return values.

    函数返回值

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

  • And again, a related problem that people run into is side-effects. You call a function and it returns a value, but maybe it, on purpose or on accident, modifies one of the actual parameters.

    另外,一个人们常碰到的相关问题,就是副作用,你调用一个函数返回一个,但是故意或者无意的,它可能会修改一个实参的

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And the reason that we now on the second line have the equal sign is because this function GetString has what's called a return value.

    我们之所以,在第二行代码GetString前面加上等号,是因为这个函数会带回一个,返回值

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

  • You have to with C, as with a lot of programming language, say what you return.

    在C语言和大部分语言中,你必须说明函数返回值

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

  • > So void, again, is my way of saying swap does not return anything.

    >,void,再次强调下,这是一种,说明函数返回任何的方式。

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

  • So this function increment takes nothing, returns nothing, and yet it does something.

    所以increment函数不带入参,也不返回值,它也没做什么。

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

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

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

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