• I've written a little for loop, which is going to iterate over all of the elements in the list.

    让我们先看看这儿的代码,我已经写了一个循环语句,用来迭代处理数组所有的元素。

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

  • But the string, the sentence or the words that we're displaying on the screen, previously you clicked on a little white text field and typed it in, well now you're gonna do the same thing at the keyboard but you're gonna have to sandwich it in between double quotation marks.

    这些你想输出到屏幕上的字符串啊,语句啊,单词啊,或者你事先,在白色输入框敲进去的内容,现在你们需要用键盘做同样的事情,但是你们要写在,双引号之间。

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

  • 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 really, the rule of thumb if you think back to Scratch is -- that any time you write a statement -- -- something that does something in one line of code -- you generally need the semicolon there.

    实际上,根据经验,你们回忆一下在Scratch,任何时候你们写一条语句-,处理一些操作的一行代码-,你们通常需要在那里加个分号。

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

  • So don't underestimate the value for the next week or two of just inserting printf statements into your code temporarily just to print out what the value of some variable is, or some expression is, so that you can just do a sanity check.

    所以不要低估下一两周的重要性,虽然我们只将“printf“语句暂时地植入到,我们的代码,只是用来打印一些,变量或表达式的值,所以你们提醒一下自己。

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

  • Here, print F, recalls a statement and just like in scratch, statements were these one-liners.

    这里,printf,召回了一个语句,像在scratch语句是这些单行方式的。

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

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

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

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