OK, now that I've got that, we could think about what would I want to do with these points?
我也可以像以前那样,对它们进行赋值操作,好,现在我们已经有这些对象了?
I'm gonna keep as part of each stock, it's history of prices, which we can initialize, well, I've initialized it as empty, but that's probably the wrong thing, right?
我会把股票的历史价格,作为每只股票的一部分,我们可以先对它的历史价格进行赋值,好了,我先给它赋了空值,但是这样做可能不对,是吗?
f Well, call toupper pass this lowercase F F to this function called toupper it's going to return capital F and so what do I assign to s2 bracket zero?
调用toupper函数,传递这个小写,然后返回的是大写的,那么我对s2【0】赋值多少?
But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.
加上得到的这个数的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个数加到一个数上面去,然后用和对这个数进行了重新赋值,在循环中会去遍历字符串,当完成循环后,程序会显示数字的总和,如果我运行,这个程序的话,我会得到我期待的结果。
Right. So X get assigned the value of Y, but then Y gets the value of X; so what have you really done?
对的,X被赋值成Y的值了,然后Y获得了X的值,你到底做了什么呢?
Did the same thing with c p 2, 2 2 0 Again, remind you, c p 2 is a different instance of this data type.
建立了一个x变量,我也把它赋值为,因此cp1内置有了x和y值,然后对cp2做同样的操作。
So I'm going to have an assignment of y, I'm going to have an assignment of iters left, I've got a comment that I had borrowed in order to do some debugging, and then what do I want it to do?
因此我需要对y进行赋值,需要对iters,left进行赋值,还有一个我用的别人的,用来调试的一些注释,那么接下来我希望程序怎么运行呢?
Locally x got bound to 3, 3 I added 1 to it, whoop-dee-doo, 4 I get back a 4. But what's the value of x?
这是我想要的对吧?,在局部程序中x被赋值为,我给它加了1,我得到了?
应用推荐