If it's in polar form I passed in a radius and angle and I'll compute what the x- and y- value is.
以及半径和角度,但是现在是这样的,不管我是以哪种形式。
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.
那么大家明白了为什么,我说类是一个模板了,对不对?,现在它只是一个简单的模板,但是它是一个用来-,创建形成一个类的模板。
Y Why don't I say int temp gets X. Let's say Y oh, sorry, X gets Y and then Y gets temp, this 2 would fail.
为什么我不说明,int,temp,=,X,让我们说明,哦,对不起,X=Y,然后,Y=temp,这两行将失败的。
if I think it's more likely than this crossing point Y I think it's very likely they're going to choose Right.
如果我觉得对手选右的概率,会在交点Y的右方
Once you do that, I think it's fairly clear that it has got a y component that's given by cosine the x component is negative.
用了这个结论,我想很明显,y 分量由 cos φ 给出,它的 x 分量是负的
If I draw this down this this point is this year's income down here and this point here is next year's income; I'll use Y for income.
过这点画一条x轴的垂线,表示今年的收入,再画一条y轴的垂线,表示下一年的收入,我用y表示收入
This actually I think derives from a Greek word, "Synkope, " S-y-n-k-o-p-e, synkope.
这个术语我觉得来源于希腊语,Synkope,S-y-n-k-o-p-e
All right, it's so if I looked at it, sorry, IF x is less than y, THEN check to see IF x is less than z, and if that's true, print out x is the smallest.
好,代码是这样的,对不起,是不是x比y小,然后去看看是不是x比z小,如果都为真的话,显示x为最小值。
Notice in the class definition here, is there, this is the first thing that's got called, and I just called with the value for x and the value for y, and it went off and did something for me.
就在这里,这是第一个被调用的东西,我用x的值和y的值调用了它,然后这个方法继续进行,并为了做了一些操作。
I'm going to say, gee, p2 is the x value the same in both of them, and if it is, and the y value's the same, then this is the same point, I'm going to return true.
这样的数据对象,我会把它们命名为p1和,我会去查看,看看两个对象中,的x值是不是相同,如果相同的话,就去查看y值是否相同。
y A square it's called X, another square it's called y and now this time I'm doing pointers to int not points to char.
一个叫做x,另外一个叫做,这一次是int型指针,不是char型指针。
And I originally decided I was going to have as points, it's going to have internal values of an x and a y.
写了一堆代码,然后我以开始决定,是要把值放到点里面的,点有内部的x坐标和y坐标。
Well, it looks like I just stole my own implementation Y but I happen to call it A and B, instead of X and Y, and so here, what's going on?
嗯,看起来我刚好像盗用了我自己的实现,我碰巧叫它为A和B,代替X和,这里,发生了什么事?
If you are describing a particle with location R, the vector we use typically to locate a particle, R then R is just i times x + j times y, because you all know that's x and that's y.
如果你要描述一个位移为 R 的质点,这个矢量一般用表示质点 R 的位移,R 可表示为 i ? x + j ? y,显然你们都知道这段是 x,那段是 y
How would we go about, I mean I don't want to do it because I'll probably get it wrong, but if I wanted to solve out for this X and the Y, since this is a QR class, let's just talk about it a second.
我们怎么解呢,我的意思是我现在不会去计算,因为我可能会算错,但是如果你真的很想解出X和Y的值,介于这是一节需要快速反应的课,那我们花些时间来探讨一下吧
应用推荐