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

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

  • Now if you look at that list, there is actually something I didn't seem to check, which is, I said I wanted a float stored in hyp.

    看下上面的清单,实际上我还有一些东西忘了检查,也就是说hyp中存储的,应该是浮点类型。

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

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

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

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

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

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