• And when I'm done with the whole thing, before I end the increment of the variable, you know, when I'm done, I'm just not returning anything out.

    在循环外面初始化它,然后做一个终结测试,然后在循环内部有一个指令集,在这个例子中,就是对余数做检查,然后显示信息,当我完成了整个循环。

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

  • The exact shape of the curve is subject to discussion, but the point of diminishing marginal utility is that, as you get more and more money, the increment in utility for each extra dollar diminishes.

    这条曲线的确切形状还有待讨论,但是边际效用递减规律的重点在于,你得到的钱越多,每额外的一美元的增长效用会相对减小

    耶鲁公开课 - 金融市场课程节选

  • Anything where you're actually keeping track of something like a score that's having a variable that you increment -- plus, plus, or decrement, minus, minus, using the appropriate puzzle piece could certainly be compelling.

    你需要保存像分数这样的事物时,你就需要一个变量,它可以自加,++,或者自减,要使用正确的拼图。

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

  • But here, as we saw in week zero with the shoe example putting on socks, I have to increment this variable explicitly myself.

    但是这里,像我们上周看到的,鞋子穿在袜子上,我需要亲自明确地增加这个变量。

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

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

    我的函数原型,再次强调,我可以以后使用它,这样编译器就不会疑惑这个你提及的,是什么,因为是没有,被声明的。

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

  • It does, in fact, successfully increment X, because at this point in the story, X was not scoped to main.

    它实际上成功的增加了X的值,因为在这个地方,X不是main中的范围。

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

  • Now if you call a function, swap like increment or cube or swap, or in this case, foo, those variables are the parameters to that function, end up getting stored next in memory.

    现在如果你调用一个函数,像increment或者cube或者,或者在这个例子里,foo,这些变量都是,函数的参数,在内存中存储。

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

  • 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的函数。

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

  • It makes sense to me logically that I want to see it first when I open the file; so I scroll on down but only later is increment declared.

    这个逻辑上对我是有意义的,打开文件的时候,我想先看到它,所以我向下翻,之后才声明increment函数。

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

  • You do the math correctly, increment returns.

    你正确地做了算术,increment返回。

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

  • And when you call a function, one of the things X that happens is whatever your passing in, for instance, X, ; and if this is A, this thing gets copied into A; so at that moment in time of calling increment, I actually have two copies of the same value in memory but they're referred to by different names.

    当你调用一个函数,其中发生的一件事情是,不管你输入什么,比如,或者是A,它把这个东西复制到A中;,调用increment的时候,实际上在内存中,有两个同样的值的内存块,但是它们有不同的名字。

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

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

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

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