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

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

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

  • Expect the address of an int but here in the context of the function itself inside the curly braces, it means go to that address.

    一个整型数的地址,但是在函数,大括号中的环境中,意思是定位到那个地址

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

  • In the first spot, I'm going to store something that says, here's how far you have to jump to get to the next element.

    我们存下下一个,元素的地址偏移量,然后,用之后连续的几个单元。

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

  • It occured to me yesterday in my class that maybe someday there won't be social security numbers anymore, and on birth everybody will be given an e-mail address.

    我昨天上课的时候想到,或许有天大家出生时,得到的将不是社会福利号码,而是一个邮箱地址

    麻省理工公开课 - 电影哲学课程节选

  • Now, if I've asked the user for a string and then a moment later I ask the user for another string, well, they're going to end up in different locations in memory just by nature of get string.

    现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。

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

  • Just the first one or more generally the address of the first one and then, man, I'll just figure it out from there where the rest of the letters are because by definition of a string, they're back to back to back.

    只需要第一个字节的地址,然后,我可以指出之后的,剩下的字母,因为通过一个字符串的定义,它们是紧邻的。

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

  • It's just a chunk of characters back to back to back so this is storing at the very first location in the string what?

    它只是一串紧邻的字母串,所以它把什么存储在,字符串的第一个地址下?

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

  • Again, for those-- for whom this is blocked, I'm just dividing the rectangle into smaller squares which is to say that memory is addressable.

    这是一整块的,我只是把它划分成一个个小区域,每个小区域都可以设定一个地址

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

  • 2 3 I'm going to call this address one, two, three and I'm going 4 5 6 to call this one 4, 5, 6, right?

    我把这个地址叫做,另外一个叫做?

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

  • But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.

    但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。

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

  • So, when you want to figure out the address & of a variable, you say ampersand.

    当你想得到一个变量的地址,你可以指明。

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

  • Star means here is an address go there. That's all.

    在这里的意思是一个到那里去的地址,就是这样。

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

  • One says get the address, one says go there.

    一个表示获得地址一个是定位到那个地方。

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

  • And you'll have an email address.

    也许你们都会有一个邮件地址

    麻省理工公开课 - 电影哲学课程节选

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

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

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

  • Not by some very arcane numeric address inside my computer's memory, but by a symbol, by a name.

    不是通过一些在我电脑内存中的神秘的数字地址,而是通过一个符号,一个名字。

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

  • That is the address in memory in the heap of the first byte that the user typed in.

    那是用户输入的字符串第一个字节,内存中堆的地址

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

  • So there we have, I'll create a GUI interface using Visual Basic, see if I can track an IP address.

    好了,我用VB创建一个,图形用户界面,看是否可以跟踪IP地址

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

  • You've made a copy of the address.

    你已经对地址做了一个拷贝。

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

  • In other words, if you hand someone literally the street address of something, right, if you hand, let's say, if you hand someone the address of a house or a home that person can then literally go to that location and do whatever they want at that location.

    换句话说,如果你传递的是街道地址什么的,对的,如果你传递的是,一个人的住宅的地址,那个人就可以到那个地址去,处理他想做的事情。

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

  • So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.

    它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。

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

  • Well, get string again is returning the address of the string the user typed in, D the address of the very first character like the letter D and storing that address in this variable s1.

    好的,GetString返回的是,用户输入的字符串的地址,第一个字符的地址,比如字母,然后把这个地址存储在这个变量s1中。

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

  • They might very well be storing the addresses of memory elsewhere, but we just needed them as sort of a cheat sheet, a little address card to know where the original values x and y were.

    它们存储在内存的其他地方是可以的,但是我们需要一个备忘单,一个地址卡,来知道,原始的值x和y是什么。

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

  • I store in s1 the address of the first byte that the user typed in and by the way that first bite happens to live in this new place called the heap and that's the only update to the story thus far.

    我在s1中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。

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

  • So that is actually making a copy of the address and putting it in s2.

    这实际上是复制一个地址,然后放置在s2中。

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

  • I'll create a GUI interface using Visual Basic, see if I can track an IP address.

    我用VB创建一个图形用户界面,试试能不能跟踪IP地址

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

  • So I just have to see, oh, here's a D, let me keep looking, D here's an A, keep looking here's a V, here's an I, here's a D and yet, and this is one tidbit we introduced a week or so ago, how do I now know if I'm just given the address of the start of the string where the end is?

    我只需要看到,哦,这里是一个D,让我接着往下看,这里是A,接着这是V,这是I,这是,然而,这是我们一周以前介绍的花絮,如果你给我一个字符串开始的地址,我怎么知道它什么时候结束?

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

  • It's only copying the address that was returned by get string so even though conceptually is the name this program suggests, I really just want to make a copy so that maybe I can make one version of D-A-V-I-D or F-O-O all uppercase or all lowercase or I want to spell check, something.

    而只是复制GetSting返回的地址,虽然这个程序表示的名称,我只想做一个拷贝,以便我可以做一个D-A-V-I-D或者F-O-O的版本,大写的或者小写的,或者拼写检查之类的。

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

  • This was the special value that said to the computer string stops here and because you have that barrier given to you at the end of every string, just the most efficient way you can pass strings around is just by passing the address of their very first bytes, the location in RAM.

    这是一个特殊的值,表示的是,字符串在这里结束,因为在每个字符串的末尾,都有那个关卡,这是一个最有效率的方式,你可以通过传递,字符串的第一个字节的地址来传递一个字符串,地址是在RAM中的。

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

  • So it's an address, it's a pointer, address pointer, synonyms for now, so it's the address of a char so this makes sense because s1 is also the address of a char so if I wanted to make a copy of that address this is absolutely the right syntax.

    一个地址,是一个指针,地址指针,也就是,char型数据的地址,这是有意义的,因为s1也是一个char型数据的地址,所以如果我想要复制那个地址,这个绝对是正确的语法。

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

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

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

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