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.
所以左花括号后面跟着,右花括号,这意味着花括号里面所有的代码,都应该是要被执行的,但只有当第一个条件是正确的。
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.
当你定义一个函数,就像我们看到的这些花括号,定义了与,那个函数相关的所有代码;,左花括号,代码,右花括号,这就是一个函数。
There was the wonder I felt when I saw a brace of mountain like, spotted, black-and-white horses clopping down a dusty road through clouds of powdered clay.
我觉到很美妙,当我望见一大群如山般高大的,黑白斑点马压过土路,我觉到很快乐。
Why does it start with square braced square brace?
这为什么以两个,方括号开始呢?
Then you say main, open parenthesis, close parenthesis, open curly brace.
前括号,后括号,前大括号。
They are correct, as the picture suggests, but then I hit that curly brace.
它们是正确的,就像那个图所表示的,然后以那个花括号结束。
But the moment swap returns, the moment we hit this bottom most curly brace, what conceptually happens in memory?
但是swap返回时,当我们抵达花括号底端是,在内存中发生了什么?
Well in C and many similar languages, you have to implement that same bracing structure with your keyboard using an open curly brace and a closed curly brace, so a tiny little detail.
在C语言和一些类似的编程语言中,你也必须搭建同样的架构,同样也得注意前大括号啊,后大括号啊等等这些细节问题。
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中哪里开始执行?
So the translation here is that whereas last week and in Scratch, the looping structures are yellow and have kind of this brace structure to them.
同理,大家回想一下上个星期,在Scratch软件中,循环结构都用黄色标记出来了,与此类似。
For some reason I had this backslash N, a close quote, parenthesis, semicolon, close curly brace.
由于某些必要原因,我们还得加上\n,后引号,圆括号,分号,后大括号。
When I hit that curly brace, swap's role in life is over.
当我以那个花括号结束,swap的角色就结束了。
应用推荐