• So in the end, this is just saying allocate me as many bytes s1 as were needed to store s1 itself.

    最终,这个只是表示给我分配,足够多的空间来存储。

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

  • It's roughly the same size physically as those floppy disks and yet how many, how much, how many bytes fit on a typical hard drive today?

    从物理大小上来说几乎相同,那么现在的硬盘的存储大小,一般有多少字节呢?

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

  • So, the curious thing about recursion is that pretty much always can you implement this idea of doing the same thing again and again and again but with smaller bytes each time.

    可见,递归算法中新奇的一点是,为了实现一个想法,你可以一遍又一遍地做相同的事情,但每次的规模都会有所减小。

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

  • I have no idea what's here at the moment so I'm just going to draw a question mark because that memory might have been used previously for some other purpose, but we know it's currently available to us so we have four bytes of memory.

    我不知道在此刻这里是什么,所以我画一个问号,因为那块内存可能在之前,为其它的目的而使用过,但是我们知道它可以为我们所使用,这样我们就有4个字节的内存。

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

  • This thing, if you now go ahead and very gently corrupt a few of the bytes, you can see that you can push down on that thing pretty easily.

    如果我们很小心的,损坏了若干字节,你将会发现很容易把这个东西推下去。

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

  • So those are in fact the patterns of zeroes and ones, the bytes that would have been outputted had I hello c remembered to download the compiler to this computer and run it on that little hello.c file.

    这些都是0和1的模式,如果我记得下载编译器到计算机上的话,我们就能运行下这个,然后看看输出的字节。

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

  • It's just some random chunk of four bytes that happens to be available at this point in time, but I can put something there.

    只是一些随机的四字节的内存块,在这里是可以使用的,但是我可以在那里放置东西。

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

  • It just needs to know how many bytes of memory do you want?

    它需要知道你想分配多少字节的内存?

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

  • A string is a contiguous sequence of characters aka bytes.

    字符串就是一串,字符,亦称字节。

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

  • D-A-V-I-D Well, if I've got a five-letter word like D-A-V-I-D, well, that's like five bytes and yet we only have the ability thus far in this class to return one thing at a time I can't return five bytes to you, but wait a minute, those bytes by nature of a computer are just stored in RAM.

    好的,如果有5个字母的单词,如,那是5个字节,我们只能返回一个东西,而不能返回5个字节,等一下,这些字节被计算机本能地,存储在内存中。

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

  • Even though we say gigabyte that really means billion bytes.

    我们所说的十亿字节就是有十亿个字节。

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

  • So might have been seen long and that might be correct on some servers, but very, very often the data type called "long" is actually 4 bytes.

    你们有可能看到过long,那个在一些服务器上是正确的,但是非常,非常普遍的是,那个叫做“long“的数据类型,只占有4个字节。

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

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

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

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

  • So int n just gives me four bytes for an int, but it doesn't put anything there yet.

    所以int,n只是给我们分配了4个字节,但是它没有放任何东西在那里。

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

  • Now a float is not 1 byte, it's 4 bytes, or 4 times 8, 32 bits.

    而float就不只1字节了,它占据4个字节,或者说32比特。

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

  • malloc sizeof So, when I call malloc size of int and int on this system is probably 4 bytes or 32 bits so what am I getting back?

    所以,当我调用,在这个系统中int可能是4个字节,或者说32位,那么返回的是什么呢?

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

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

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

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