If I do this and this but then I also put some other quotes inside, what's the computer potentially gonna think?
如果我双引号里面再套双引号,那电脑会怎么想呢?
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.
让我用这个来挑战你们:,在这些花括号里面,我通过双斜杠写入了一个注释,-一条“注释“在这里不会被编译,它只是用来我们阅读的。
They would bomb it, they would burn it, they would put it in this container inside water, and see how high the water temperature raises and that would give you a sense of the number of calories that it has.
研究人员会燃烧它,放入浸在水里的量热器,然后观察水温上升了多少,我们就对这种食物热量有所了解了
It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
Well what you do is you bomb the food and you use something called the bomb calorimeter that looks like this, and so essentially what you do is you put the food in this device that sits inside water.
我们要做的是燃烧食物,使用一种叫弹式量热器的工具,像这样,把食物放入这种仪器中,仪器会浸入水里
The curly braces are then the C's way of kind of making a puzzle piece that looks like this so you can put stuff inside.
花括号是C语言的一个方式,用来做一个像这样的程序块,所以你可以把代码写在里面。
But what looks like this orange block as of now in Scratch, add orange to your so called inventory, well, it's gonna take at least two lines of code in C to actually create the inventory array with this first line and then put something like the word orange inside of it.
就好比Scratch里面橘色的这一块,把“桔子“加到所谓的“清单“里面去,在C语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
应用推荐