• Instead if we want this pointer to represent the address of something in as much as it points at that address let's just draw an arrow.

    如果我们想要让这个指针表示,数据的地址,它指向的地址,我用一个箭头表示。

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

  • And you're saying "oh no," because the little line is almost at empty.

    然后你说,“哦,不!”指针已经快指向空的一端了。

    I'm about to 课堂 - SpeakingMax英语口语达人

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

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

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

  • Which may take up some arbitrary amount of memory. In that case, I'm back to this problem.

    然后将接下来的每一个内存块设置为,指向数组对应元素值的指针

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

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

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

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

  • Or another way of thinking about it, is remember I said when I call that class definition it creates an instance, that's a pointer to some spot in memory that's got some local information around it.

    也就是一个指向,内存中某处的指针,这个地方存有一些,这个实例的信息,浅意义的相等也就是说,看看这两个东西是不是。

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

  • The things they point to are called pointees and setting them is a separate step.

    我们指向的叫做指针数据,把它们分成不同的步骤。

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

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

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

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

  • > Okay. This code allocates two pointers which can point to integers.

    >,好的,这段代码分配两个指针,可以指向整型数。

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

  • It just changes one pointer to point to the same thing as another.

    这只是是一个指针指向,另一个指针指向的数据。

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

  • > Okay. Well, this code allocates a new integer pointee and this part sets x to point to it.

    >,好的,呃,这段代码分配一个新的整型指针数据,这部分让x指向它。

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

  • Yeah, a pointer to this chunk of memory.

    是的,一个指向这块内存的指针

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

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

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

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

  • Initially pointers don't point to anything.

    最初指针不会指向任何东西。

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

  • Once I've got that, I can now start giving some variable names, sorry not, rephrase that, I can give some attributes, I can give some characteristics to these classes.

    还有个指向内存中地址的指针,我还可以命名这个指针,因此cp1和cp2都是,指向它们的指针,一旦我创建了它类,我就可以开始赋予。

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

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

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

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

  • Well, basically because it was a design choice when the creators of Python decided to create the language, they basically said, we're always going to have an explicit pointer to the instance.

    好,基本上来说这是因为,这是当Python的创造者,决定创造这门语言的时候,的一个设计决定,他们主要的说了说,我们要有一个明确的,指向实例的指针

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

  • And then I say, are they the same thing?

    指向p2指针所指的位置,然后我再来看看?

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

  • > Okay. Well, I see the two pointers, but they don't seem to be pointing to anything.

    >,好的,呃,我看到那两个指针,但是他们好像,没有指向任何东西。

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

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

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

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

  • And then it needs to have access to that, so it calls it, passing in self as the pointer to the instance.

    把self作为指向这个实例的,指针传了进去,也就是,它的意思是现在。

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

  • y >> Yeah. We allocated the pointer y but we never set it to point to a pointee.

    >,是的,我们分配了指针y,但是,没有指向任何数据。

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

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

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

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