• Number three, pointer assignment, takes one pointer and changes it to point to the same pointee as another pointer so after the assignment the two pointers will point to the same pointee.

    第三条,指针赋值,使一个指针,指向另外一个指针所指向的数据,赋值过后,两个指针会指向,同样的数据。

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

  • Number one, the basic structure is that you have a pointer and it points over to a pointee, but the pointer and pointee are separate and the common error is to set up a pointer but to forget to give it a pointee.

    第一,基本结构是,你有一个,指向数据的指针,但是那个指针和数据,是分开的,通常错误是声明了一个指针,但是没有指向一个数据。

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

  • And then since we have my red laser pointer, we will also try with the red laser pointer, which is centered at wavelength of 700 nanometers.

    然后因为我们有我的红色激光笔,我们也可以用它试一下,它的波长集中在700纳米处。

    麻省理工公开课 - 化学原理课程节选

  • That statement says, get the value of x, which is this link, and give z a pointer to the same place.

    这个声明的意思是,取得x的值,也就是连接指向的值,然后给z赋予一个指向同样位置的指针。

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

  • Number two, pointer dereferencing starts at the pointer and follows its arrow over to access its pointee.

    第二,指针非关联化从指针开始,通过它的箭头,来使用它的指针数据。

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

  • Well, it turns out on most computers an address of the location and memory, aka a pointer, is itself 32 bits.

    好的,它是一个计算机内存地址,或者说一个指针,占32位。

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

  • Let's just assume that s1 is a pointer and as an arrow suggests it's pointing at this byte here.

    我们假设s1是一个指针,就像箭头所表示的,指向这个字节。

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

  • And now, if I'm touching mouse pointer, we saw that Boolean expression before, play sound meow, wait a couple of seconds, and then just keep checking.

    现在,如果我们碰下鼠标指针,起初我们看到一个布尔表达式,播放猫叫的声音,等几秒钟,然后如刚才那样做检测。

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

  • And when I create a binding, x I'm taking a variable name, in this case x, stored somewhere in a table, and I'm creating a link or a pointer from that name to that value.

    当我创建一个绑定的时候,我有一个变量的名字,在这个例子中是,存在一个表中的某处,然后创建一个连接,或者指针从这个名字指向目标值。

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

  • We have a pointer to the location in memory that contains the actual value, which itself might be a bunch of pointers, and we have a pointer to the actual-- sorry, a pointer the value and we have a pointer to the next element in the list. All right?

    包含实际值的地址,可能实际值,也是一系列指针,这里还有指向实际,抱歉,指向下一个元素的指针,我们来整理下?

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

  • Also, what's the energy per photon of this red laser pointer, and then it's also worth trying a calculation dealing with intensity. So let's also try calculating the numbers of photons that would be emitted by this laser pointer, if, for example, we were to use it for 60 seconds and this were a one milliwatt laser.

    同样,红色激光笔的,每个光子能量是多少,这也值得用处理强度的方法计算一下,让我们也计算一下,有多少光子会从这个激光笔射出,举个例子,如果我们使用它持续60秒,这里会有一毫瓦的激光。

    麻省理工公开课 - 化学原理课程节选

  • It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.

    这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。

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

  • I'm going to call it x and how do I make a pointer to an int?

    我把它叫做x,我怎样声明一个int型指针?

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

  • int No. Even though the key word has changed from char to int, the * is the same and the fact that I've got a * there is saying this is a pointer to an int or a pointer to a char pointers are always the same size on a computer.

    不,即使即使关键字从char变成了,指针的大小还是一样的,我用*表示这是一个int型指针,而不是char型指针,在同一台机子上,它们的大小是一样的。

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

  • That's just the those-- let me use my pointer that's just these two lines here. I checked the value, and in one case, I'm changing the last to be mid minus 1, which is the case I'm in here and I just call again. All right?

    来看看ppt,这里有两条线,我检查了值,在一种情况下,我把last指向了中点减一,就是这种情况,我们再来调用一下怎么样?

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

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

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

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