• Expect the address of an int but here in the context of the function itself inside the curly braces, it means go to that address.

    一个整型数的地址,但是在函数,大括号中的环境中,意思是定位到那个地址。

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

  • Before long we'll see that you can actually put things inside those parentheses which make your programs even more useful.

    不久之后,你们就可以看到,我们是可以在括号里面加参数的,这些参数可以让你的程序更有用。

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

  • And then notice the structure, WHILE I got a keyword WHILE, there's that color identifying it, and in parentheses I have a test.

    然后注意这个结构,有一个关键词,颜色就可以区分出它了,然后括号内是个测试。

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

  • So if we want to put that in chemical terms, we want to make sure we put these in brackets here, and remember, this is the resonance arrow, it's not a reaction arrow, it's a resonance arrow, so make sure you mark it up correctly like that.

    那么如果我们把它类比到化学中来,我们要确保它们都放在括号里,而且要记住,这是一个表示共振态的箭头,而不是表示化学反应的,它是一个表示共振态的箭头,因此请务必像这样正确地标记它。

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

  • What I was saying is after you gave your own name, put brackets and then the nickname by which you want me to refer to you.

    我刚才说写了你们的名字之后,后面加个括号,写上你们想让我怎么称呼你们。

    麻省理工公开课 - 电影哲学课程节选

  • I should maybe make this the same--have to get my brackets right.

    我应该让形式保持一致,加一个右括号

    耶鲁公开课 - 金融市场课程节选

  • But if I did have two lines of code or more, I would in fact need to put those back.

    但是如果我的确有两行或更多的代码,我其实应该把花括号加上。

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

  • You can put a variable there, and because it's not encapsulated in curly braces, as we just discussed, that essentially means it's accessible everywhere in that file.

    你可以加入一个变量,因为它不是封装在花括号里,就像我们刚才讨论的,本质的意思是它可以在文件的所有地方,都可以被访问到。

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

  • So the open curly brace followed by the closed curly brace means everything inside of these curly braces should get executed, but only if that first condition is actually true.

    所以左花括号后面跟着,右花括号,这意味着花括号里面所有的代码,都应该是要被执行的,但只有当第一个条件是正确的。

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

  • I just want to make mention of this in case there's ever doubt, generally parentheses do solve your problem as an arithmetic but do realize this is some lower level details we'll come back to over time.

    是想告诉大家如果你对某些式子的前后运算关系不确定,就加上括号,这都是一些小细节,我们以后还是会再提到的。

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

  • And in general, what I would say is, when in doubt, use parens. OK.

    因此通常上,我会告诉大家的是,当有疑问的时候,请用括号,好。

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

  • I can have functions with no parameters, that's fine, I will still need the open and close paren there to identify that I have no parameters.

    我每次都需要进行输入码?,函数可以没有参数,我依然需要前后括号,来定义我没与参数。

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

  • So let me challenge you with this: inside of these curly braces where I have put a comment with slash slash -- a "comment" means nothing here gets compiled, it's just for the human to read.

    让我用这个来挑战你们:,在这些花括号里面,我通过双斜杠写入了一个注释,-一条“注释“在这里不会被编译,它只是用来我们阅读的。

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

  • So when you define a function, you have, as we've seen these curly braces, that define all ; of the code that's associated with that function; open curly brace code, close curly brace, that is the function.

    当你定义一个函数,就像我们看到的这些花括号,定义了与,那个函数相关的所有代码;,左花括号,代码,右花括号,这就是一个函数。

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

  • Right. So similarly, if you've got one line of code with a semicolon at the end saying, this is the end of the statement, it doesn't really make sense to continue that conversation to try to continue conceptually that puzzle piece with curly braces.

    对的,类似的,如果你得到了一行代码,后面有一个分号,标志语句的结尾,这就没有意义来继续,那个会话来尝试对那段代码,使用花括号

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

  • So I actually don't need the curly braces because I only have a single line of code.

    所以我实际上不需要那个花括号,因为我只有一行代码。

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

  • And then there are some stupid syntax like curly braces and semicolons that initially are kind of annoying because you have to remember where all this junk goes.

    还有一些像大括号和,分号之类的愚蠢语法,最初是很讨厌的,因为你需要记得它得放到哪里。

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

  • So if you do include it up top, the subsequent lines, even if you have these curly braces, are not, in fact, going to help you.

    所以如果你在前面就包含它,后面的代码,即使你有这些花括号,实际上也没有用了。

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

  • Well at some level it is an ordered sequence of characters. Right? Now it is not represented this same way. You don't see strings inside these open parens and closed parens.

    现在字符串不是用这种方式表达的,你没有看到字符串里有开括号括号,字符串中间也没有逗号,但是它有同样的属性。

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

  • The curly braces ensure that everything is logically clustered where it should be.

    括号确保了,逻辑上是聚集在一起的,它本来也应该这样。

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

  • They are correct, as the picture suggests, but then I hit that curly brace.

    它们是正确的,就像那个图所表示的,然后以那个花括号结束。

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

  • Well, the bracket notation means you can index into this variable.

    好的,这个括号的意思是你可以,索引这个变量。

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

  • Everything inside of the curly braces is the code I am writing.

    所有在大括号里面的代码都由我们自己编写。

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

  • Inside the curly braces is this program's code, what am I doing?

    在花括号里是这个程序的代码,我在做什么?

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

  • The curly braces to encapsulate one or more lines of code.

    括号压缩了一行或多行代码。

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

  • So on Wednesday I just put open parenthesis, closed parenthesis.

    所以在周三,我只加入了左括号,右括号

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

  • But the moment swap returns, the moment we hit this bottom most curly brace, what conceptually happens in memory?

    但是swap返回时,当我们抵达花括号底端是,在内存中发生了什么?

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

  • So this part is the cookie cutter stuff.

    所以这是个可以插入字符的括号

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

  • So that's just a little bit of a check for yourself, and it should make sense because what you're doing is you're calculating the difference between energy levels, so you just need to flip around which you put first to end up with a positive number here, and that's a little bit of a check that you can do what yourself.

    所以你们总要确保括号,离得这项是正的,这是你们自己,可以做的检查,这事很有道理的,因为你们做的是计算能量差,所以你需要调整顺序来保证一个正数,这是你们自己可以做的检查。

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

  • And even though the syntax, the characters you are about to see on the screen and in programs today onward is a little more arcane, it's a little uglier looking, you've got semicolons and parentheses and fairly arcane syntax, realize that at the end of the day these are just arbitrary human conventions, the ideas are identical to this thing here.

    可能你在屏幕上,编程中见识到的,语法,字符看起来非常晦涩难懂,甚至可以说是丑陋,像什么分号啊,括号啊等等,还有一些难七八糟的语法,但是到了最后,你会发现,这些都不过是一些人为约定而已,而蕴含在里面的编程思想跟这个例子并无二致。

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

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

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

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