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

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

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

  • It just throws the decimal point away and that's because, again, these are ints and the answer intuitively should be a floating point value, but I need to be more specific.

    它直接把小点后面的值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点据,但是我需要一个更精确的值。

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

  • 4 So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.

    所以即使那个正确的答案是4,或别的值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。

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

  • Well, if intuitively the problem is the result of dividing an int by an int, surely a solution is: "Don't do that," right?

    好的,直观地看,如果那个问题的原因是因为整型数除以整型数的话,无疑有个解决方案是:“不要那样做“,是吗?

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

  • The result is that when you divide an int by an int, the answer no matter what is going to be an int.

    当你把一个整型数除以一个整型数时,无论如何答案将会是一个整型数

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

  • And I can fix this just by changing one of those values to a floating point.

    所以我可以通过改变其中一个,整型数为浮点

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

  • Then I'd be multiplying a float by 5, so that's a float times an int.

    然后我们把这个浮点乘以,那是浮点乘以整型数

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

  • - And then I divide by an int -- that's okay because so long as you have a float involved at some point early on, you're okay.

    然后我除以一个整型数-,那是可以的因为现在为止,我们在之前已经,引入了一个浮点,你是对的。

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

  • The problem only arises if you have an int divided by an int.

    这个问题只会发生在,当你用一个整型数除以一个整型数的时候。

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

  • I'd like an integer please, a colon, and a space just for aesthetic reasons.

    我想要一个整型数,一个冒号,和一个,使其更美观的空格。

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

  • Just take a look: if this is 9, 5 divided by 9 is always going to be 0 point something, and if you thus have two integers and you're rounding down, which is what happens when you do integral math we're using this operator, I'm going to get zero times whatever.

    稍微看一看:如果这是9,5除以9会得到,0点几,如果你用两个整型数,你舍去小,这就是当你们,用整型数使用这个操作的所发生的事情,我将得到值0乘以任何一个字。

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

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

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

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

  • Instead divide an int by a floating point value.

    我们用一个整型数除以浮点

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

  • So I'd like an integer please.

    所以我想要一个整型数

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

  • - We know from Wednesday if -- briefly -- that there's this thing called a "char" or "char," depending on how you want to pronounce it, which is just a single character but where there's also an int.

    我们知道从周三起--简单说下-,我们有个叫做“char“或“char“,看你们怎么读它了,那代表一个单一的字符,但那里会有个整型数与之对应。

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

  • So this declares an integer, a variable of type int called I, 0 and initializes it to zero.

    所以这里声明了一个整型数,一个叫做I的整型变量,把它初始化为。

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

  • But if we know that 65 is the int that maps to the capital letter "A," we've already seen verbally that you can convert letters to numbers and numbers to letters, and so here's the syntax with which we'll soon be doing that.

    如果我们知道65是个整型数,对应的是,大写字母“A“,我们已经口头地说明,我们可以把字转换为字符,字符转化为字,所以这里就是我们将要学习的一种语法。

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

  • I have to change the prototype of this function to say that swap no longer takes an int per se or another int per se, but rather it takes two pointers, two ints, and in fact, it's on the very last page if you're still flipping.

    我改变了这个函的原,来说明swap不再携带那两个int本身,而是携带两个指针,两个整型数指针,实际上,它是在最后那页上。

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

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

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

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