• For his mathematical project, he compared two ways to estimate the square root of an integer, a number with no fractional parts.

    VOA: special.2011.03.24

  • Because I might have written some code in which I'm expecting that integer particular variable to have an integer value.

    因为我可能写了一些代码,来把一些,变量的类型,指定为。

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

  • You've got a picture of somebody's face, it's a million pixels. Each pixel has a range of values from zero to 256. I want to hash a face with some function into an integer.

    你有一个人的脸部照片,它有一百万个像素,每个像素的值范围在0到256之间,我想用某个函数将一张脸部照片。

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

  • 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,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。

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

  • Bohr said that the angular momentum, mvr where n is this integer counter h over 2 pi.

    波尔提及到角动量,是被量化了的,mvr,is,quantized,这里的n等于一个整数乘以h除以2π

    麻省理工公开课 - 固态化学导论课程节选

  • And unlike n, l can start all the way down at 0, and it increases by integer value, so we go 1, 2, 3, and all the way up.

    不像n,l可以从0开始取,然后每次增加一个整数,所以我们可以去1,2,3,一直下去。

    麻省理工公开课 - 化学原理课程节选

  • There's no decimal point; there's no point zero; there's no floating point value, it's just a hardcoded integer.

    这里没有小数点,这里没有;,这里没有浮点数值,它只是一个整型数字。

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

  • So at the very top, I've coded up the same thing as before: "Give me an integer between one and ten," or rather, -- "give me an integer between one and ten" -- a little different this time.

    所以在顶部,我像之前那样对同样的东西进行编码:,“给我一个1到10的整数“,或者,“给我一个1到10的整数“,这次有点不同。

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

  • It's doing integer division.

    这是整数的除法。

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

  • So for example, I can say, what are all the methods associated with the number,or the integer 1?

    所有与数字,或者说整数,相关联的方法是哪些?,你可能已经认出一些来了?

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

  • And then, if I want to find out if something's there, I do the same thing. But notice now, hash is converting the input into an integer.

    然后,我想查找出某些元素是否在列表中,我做同样的事,但是现在注意,哈希是将输入转化成一个整数,所以,其思想是什么?

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

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

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

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

  • If you want to output an integer or other types as we'll see.

    如果你想输出一个整数,我们将学习到的其他类型。

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

  • So hopefully there is indeed a way to fix this, but it looks as though the division operator, the single slash is division but -- and here's a curiosity about many programming languages -- because 17 is an integer and because 13 is an integer, why do I say that?

    我的确希望有一个方法来修正这个错误,但是看起来,好像那个除法操作,那个斜杠是除法,但是--对于很多编程语言来说,是挺奇怪的--因为17是一个整数,13也是一个整数,为什么我这样说?

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

  • Give me an integer between 1 and 10."

    给我一个1到10的正数“

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

  • So I'd like an integer please.

    所以我想要一个整型数。

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

  • All right, first question. What values of x does it terminate? Again, assume x is an integer.

    好,第一个问题,对于x的什么值程序,会最终终止,还是假设x为整数。

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

  • n It takes discrete values, multiples of some integer n, and the multiplication factor is the ratio of the Planck constant divided by 2 pi where n takes one, two, three and so on.

    这些离散的值乘以整数,乘积因子,是普朗克常数除以2π,其中n可以取1,2,3,等等。

    麻省理工公开课 - 固态化学导论课程节选

  • I print out -- and this is only wrapping - because of the big font -- I print out, "I demand that you give me a positive integer."

    我打印出来--这个字符相互覆盖了,因为用的是大字体-,我打印:“我需要你给我一个正整数“

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

  • I demand that you give me a positive integer.

    我要求你给我一个正整数。

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

  • Right, that divide is, if x is an integer and two is an integer, what's it going to do?

    好,这个除法意思是,如果x是个整数而2也是个整数,那么会怎么操作呢?

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

  • That means starting at the first one, I'm going to do something to it. And what am I'm going to do? I'm going to take that character, convert it back into an integer, and add it into some digits. And I've done a little short hand here, which is I should have said some digits is equal to some digits plus this.

    这意味着从第一个字符开始,我要对他们进行一些操作,我要去做什么呢?我要取得这个字符,然后把它转换为整数,然后加到某些数上面去,我在这里用了一些缩写,我本来应该写一个数字等于这个数字。

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

  • I'm given an integer that's a perfect square, and I want to write a little piece of code that's going to find the square root of it. All right so I'm cheating a little, I know it's a perfect square, somebody's given it to me, we'll come back in a second to generalizing it, so what would the steps be that I'd use to walk through it?

    完美平方数的整数,我想写一段代码来求这个数的平方根,好,我这儿有点儿作弊了,我知道这是一个完美的平方数了,他们给我的,我们后面会讲怎么产生这个数的,那么我想解决这个问题,需要什么步骤呢?

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

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

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

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

  • So this is something that we would call an integer, or an INT. And this is something we would call a floating point, or a float.

    这是我们称之为integer的类型,或者INT,这是我们,称为浮点数的类型,或者浮点。

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

  • So this line here declares a variable, just storage space called "x" and it's of type "int," which means an integer has to go in it.

    这里的这条线声明了一个变量,一个叫做“x“的存储空间,它的类型是“int“,意思是里面存储的是整数型的数据。

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

  • So I'm going to go over here, and I'm going to type test search-- I can type and if you look at your handout, it's just a sequence of tests that I'm going to do OK. So initially, I'm going to set up the list to be the first million integers.

    大家可以看看你们的课堂材料,那儿有一些我要做的实验,好,一开始我先去建立个,含有一百万个integer的数组,对,这有点儿简单,但是这给我提供了这样一个有序的数组。

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

  • Go ahead and implement with the person next to you a program that takes as input from the user an integer called F and prints out the answer of the Celsius equivalent.

    继续和你旁边的人执行程序,取来自用户的整数F作为输入,然后打印出与之等价的摄氏温度的答案。

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

  • All right. I want to return to some non-scalar types. So we've been looking, the last couple of lectures, at floating pointing numbers and integers.

    好,我们现在回到一些,非基本类型的话题来,我们在过去的几节课里,一直在研究浮点数类型和integer类型。

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

  • For numbers, we had some variations; we had integers, we had floats.

    对于数字来说我们学习了很多变量;,包括integer类型,包括浮点数类型。

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

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

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

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