This is saying, that's a class, true or sorry, an instance of a class, and I'm going to get the x value associated with it.
那么两个点是同一个点,我会返回,注意格式,这儿的意思是,它是一个类,噢对不起。
Right now it's a simple template, but it's a template for creating what a class looks like, and I now have an x- and y- value associated with each instance of this.
那么大家明白了为什么,我说类是一个模板了,对不对?,现在它只是一个简单的模板,但是它是一个用来-,创建形成一个类的模板。
And most of these commands you don't actually need but this little caret symbol means control, so every keyboard these days has a control key so you hold that and hit X for instance to exit the program.
这里大多数命令你们都用不着,这个小插入符意味着控制,每个键盘都有一个控制键,譬如,当你敲入X时,就退出这个程序。
And that's the following. Let's take a particle that is moving in the x-y plane, so that at one instance-- sorry, let me change this graph-- is here--oh, this is bad.
接下来,我们来看一个物体,在 x-y 平面内运动,在这个例子中,对不起,我要重画一下这个图,在这里,这画得不好
Why should we think there's some--Even though, normally, the barrier can be crossed and Xs can study the non-X, why should that barrier suddenly become un-crossable in the particular instance when we're dealing with Platonic forms?
为什么我们应该认为即使通常来说,那个界限是可以跨越的,即X可以研究非X,那为什么这个界限突然,在讨论柏拉图型相的时候,就变得不可逾越了呢
And then from that start point, get the x-value. Same thing, from that instance, get the endpoint, from that end point get the x-value, square.
取得结束点,然后取得结束点的y坐标,然后求差开平方,然后同样求的y坐标。
And when you call a function, one of the things X that happens is whatever your passing in, for instance, X, ; and if this is A, this thing gets copied into A; so at that moment in time of calling increment, I actually have two copies of the same value in memory but they're referred to by different names.
当你调用一个函数,其中发生的一件事情是,不管你输入什么,比如,或者是A,它把这个东西复制到A中;,调用increment的时候,实际上在内存中,有两个同样的值的内存块,但是它们有不同的名字。
If I want to get values back out, p I could in fact simply send to that instance a message, in this case I could say p dot x.
我就是,我刚刚在这里输入的,我得到了一个c,point的实例,如果我想把值取出来,实际上我可以。
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做同样的操作。
应用推荐