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

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

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

  • So, you know, we've got a bunch of juicy topics to dive into this week involving pointers and memory.

    这周我们有很多有趣的主题,包括指针和内存。

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

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

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

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

  • We're going to ask, "What's the needle showing at different times?"

    我们想要知道,"不同情况下指针的读数是多少"

    耶鲁公开课 - 基础物理课程节选

  • Right? I've allocated a variable, it happens to be a pointer; it's still a variable, who know what's in it, right?

    对不?我分配了一个变量,它碰巧是一个指针,它还是一个变量,谁知道它里面是什么?

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

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

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

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

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

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

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

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

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

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

  • Scratch This Boolean expression allows you to say to scratch if you are touching the mouse pointer, the little arrow, do something. How do we do something?

    布尔表达式允许你告诉,当你触碰到鼠标指针,也就是小箭头,程序就相应地做一些事情?

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

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

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

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

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

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

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

  • They can be 64 bits, but very often on systems today are pointers 32 bits.

    也可能为64位,但在通常的,系统中,指针占32位。

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

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

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

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

  • Some other object-oriented programming languages do not provide that pointer.

    其他的面相对象编程的语言,没有提供这个指针

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

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

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

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

  • Now, I have to do the merging so I do pointer, pointer.

    下面进行合并,同样用指针

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

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

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

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

  • p2 It's taking the name p 1 and it's changing its value to point to exactly what p 2 points to.

    我要把p1赋值为1,这个操作有什么用呢?,这个操作把p1这个名字的,指针的值改变让它。

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

  • Yeah, a pointer to this chunk of memory.

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

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

  • All right so I want first a pointer.

    好的,首先我需要一个指针

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

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

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

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

  • It has a pointee.

    它有指针数据了。

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

  • But if I'm accelerating, the force exerted by the spring and therefore, the needle the weighing machine reads is m.

    但是如果我在加速运动,那么弹簧的弹力,也就是称重机上指针的读数就是 m

    耶鲁公开课 - 基础物理课程节选

  • A star is a preview, is referring to what's called a pointer, similar in spirit but more dangerous than references in Java for those familiar, but we'll soon focus on these next week.

    是一个预览,它叫做,一个指针,精神上类似的,但是在Java中提及这些熟悉的是更危险的,但是我将在下周集中研究这个。

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

  • We'll make this available because, frankly, you could Google it and now it's pretty moot because Apple has plugged this particular hole but there's all sorts of other bugs still, but it all boils down to one of the topics today, which is going to be that of this thing called a pointer.

    我们将这个变得可用的,因为,坦白讲,你可以Google它,现在它是毫无意义的,因为苹果填补了这个漏洞,但是这里还有各种各样的其它的bug,这也是今天,的一个主题,那就是,被叫做指针的东西。

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

  • 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型指针,在同一台机子上,它们的大小是一样的。

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

  • When I was not accelerating and everything was at rest, ma was 0, w was mg, and w was the reading on the needle.

    当我还没有加速,一切静止的时候,ma 是 0,w 就等于 mg,w 就是指针的读数

    耶鲁公开课 - 基础物理课程节选

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

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

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

  • x >> Okay. I'll dereference the pointer x 42 to store the number 42 into its pointee.

    >,好的,我废除这个指针,在指针数据中存储数字。

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

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

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

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