• When you call a function, what actually happens is that function gets its own chunk of memory that's identical in size to the data type that it expects.

    当你调用一个函数,实际上发生的是,函数得到了自己的内存块,相同的类型,是占有一样大小的内存的。

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

  • - Well, just a moment ago, we did have -- -- and this time I'll use some chalk here -- a moment ago, we did have a picture depicting what was going on when you call the function.

    好的,刚才,我们确实有-,这一次我将用一些粉笔-,刚才,我们有一张图描绘了当我们调用函数的时候,会发生什么事情。

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

  • And it's more dramatic if the system is a gas p T2 V2 p, T2, V2, And let's look at what happens to U these functions of state, to H to u under this transformation.

    如果是气体这个系统,就更具有趣了,让我们看看H和,在这个变化中态函数发生什么变化。

    麻省理工公开课 - 热力学与动力学课程节选

  • And one of the ways you can make a program crash, intentionally or not, is to essentially use up too much memory or call too many functions and what happens is, bam, one hits the other and bad things happen.

    其中一个方式能使你的程序崩溃掉,有意或无意的,它本质上使用了太多的内存,或者调用了太多的函数,所发生的,崩掉,一个冲突了另一个,然后发生了坏事情。

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

  • 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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