• 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 int n just gives me four bytes for an int, but it doesn't put anything there yet.

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

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

  • Now at this point in the story, I've got a variable called n. I've stored it in int.

    现在这个故事的这里,我获得了一个变量n,我把它存储成int型的。

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

  • If they type in bogus characters, it's going to yell at them and make them retry, and eventually I'm going to get handed back an int, which I'm storing in n. Well, if I actually want to judge this number based on its magnitude, well, I can say now, "If n is greater than or equal to one."

    如果他们键入了不合法的字符,它将对他们叫喊,然后叫他们重试,最终我将,得到一个int数,它是存储在n中的,好的,如果我的确想要根据它的量级来判定这个数字,好的,现在我可以指明,“是否n大于等于1“

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

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

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

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

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

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

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