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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  • So, in terms of finishing our Lewis structure, we're actually not done yet here, even though we have full octets, and we've used up all of our valence electrons, and the reason is because it's c n minus, so we need to make sure that that's reflected in our Lewis structure, so let's put it in brackets here, and put a minus 1.

    那么,根据我们的路易斯结构的完成情况,我们实际上还没有全部完成,尽管我们有了填满的“八隅体“,而且用完了所有的价电子,原因就是因为这是一个负离子,我们需要确保我们的路易斯结构能反映出这一点,所以让我们给它加个括号,再加个负一。

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

  • That's true, but especially because of my parenthesization 32 over here, because I'm saying, "Do f minus 32, but then multiply it by the division on the left."

    是那样的,但是特别地,因为我这里加上了括号,因为我指明,“f减去,然后它乘以左边的那个除法的结果“

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

  • So we hit the curly brace so the very bottom of the function and as soon as you hit that, the next line in the story is well, then we return to main and where are we executing in main?

    我们抵达花括号了,这是函数的末尾了,一旦到了那个地方,在下一行,然后返回到main函数中,在main中哪里开始执行?

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

  • For some reason I had this backslash N, a close quote, parenthesis, semicolon, close curly brace.

    由于某些必要原因,我们还得加上\n,后引号,圆括号,分号,后大括号

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

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

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

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