• It turns out when we call string a string, we're really referring not to those characters but to the address, the location and memory of those characters.

    当我说字符串时,我并不是指这些字符集,而是指地址,就是这些字符集在存储器中的位置。

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

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

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

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

  • 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中。

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

  • 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中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。

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

  • We need to tell the computer go to the address in x * and put 42 there so is the symbology there & or *?

    我们需要告诉计算机,通过x定位到那个地址,然后在那里存储42,这里是用&还是?

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

  • So, now we have said go to the address stored in X, which is who knows, it's over there, put the number 42 there so what I've just drawn is this part of this story here.

    那么,现在我们指明定位到存储在x中的地址,那就是把数字42放在那里,我所画的就是这一部分。

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

  • I'm going to delete that arrow and actually draw s2 as pointing to this chunk of memory because whereas before this sequence of chars might have lived at address 71 or whatever, well, this one might live at 91.

    我不会把那个箭头删除,实际上我画了s2作为,这块内存的指针,因为,这个字符序列存储地址71或其它的地方,这个可能存储在91的地方。

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

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

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

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