Well here is my array of 8, you know what, it's too much work to sort all 8.
这是有8个杯子的一个序列,要对这8个杯子进行排序就会花费较大功夫。
Well, you can use what's called an array which is kind of a list or a little satchel of that you might physically carry that you can put things in again and again, and with an array can you actually keep track of not just numbers but any kinds of things, other sprites or other pictures, or perhaps a little something like this.
你可以使用数组,它其实是个列表,或者说是个小包,你可以把东西一个个放到里面,通过数组你可以保存任何种类的变量,图片或者像,这个例子中的一些小变量,而不仅仅是数字。
And in this context, the length of that array is stored in Arg C. Well, let's take a look at a slight variance of this that reveals further what we can do and reveals what a string really is.
关于这点,那个数组的长度被存储在ArgC中,好的,让我们看看这个轻微的变化,那个揭示了我们可以做的,和字符串实际上是什么。
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语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
应用推荐