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

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

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

  • i So I have up here at the top of my program a variable called i 0 of type int, and I have to initialize it up here to zero.

    所以在程序的顶端我有一个int类型的变量,我需要把它初始化为。

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

  • Then I'm declaring a variable called n, it's of type int.

    然后我声明了一个变量n,它是int型的。

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

  • int So, primitive type besides those three types, we have ints which are just integers which are similarly 32 bits.

    除了这三种类型外,还有一种最原始的数据类型,32比特整数。

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

  • So with an integer, an int data type, you can store any number between 0 and 4 billion roughly.

    只要有一个整数,一个int型的数据,就能储存任意一个,位于0到40亿之间的一个数。

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

  • I get the int and store it in n. The switch statement takes inside its parenthesis an int or a char or some primitive type.

    我得到一个整数并把它存储,到n中,switch语句的圆括号里可以是一个整数,或者一个字符或其他的基本类型。

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

  • 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 unlike an int, this is the type of number that can have numbers after a decimal place.

    所以,不同于int,这个类型的数字,可以有小数位。

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

  • So what data type can we use to actually get more bits of precision than an int?

    所以我们能用什么数据类型来表示,比int类型更多位数的数呢?

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

  • So there's no mention of int, and yet we've been saying for the past couple of lectures, that anytime you declare a variable, you absolutely have to specify its type.

    这里没有提及int,我们在前几个演讲中,一直讨论的东西,任何时候你声明一个变量,你必须指定它的类型。

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

  • So Jordan, playing the role of human is going to type or write something down on this piece of paper, GetInt hand it back to, get int.

    所以Jordan,担任人类的角色,键入,或者在这张纸上写下点东西,把它传给。

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

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

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

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