One. And so I put 1 into this box so that's the correction I needed to make from before.
,因此我把1放在这个盒子里,那么这里我需要做的改动。
So up here, I've just predominantly been working and concentrating on my career, so.
在这里,我主要精力放在工作上,努力发展事业。
Now, I put a version up there, I have no idea if this is the right way to do comparisons or not.
现在,我把一个版本放在这里了,我不知道这是不是,做比较的正确方法。
Now you may think, well I've seen that before.
我以前见过这种现象,拿一杯水放在这里。
If I do x equals 42, I'm not going to put the 42 here, where am I going to put it?
如果,x,=,42,我不会把42放在这里,我把它放在哪里?
In any event, this is some interesting research opportunity, so again, no obligation, you don't have to do this, I won't even know if you are or not, but I just thought I would present these in the case you might find them interesting things to do.
不管怎样,这都是些不错的研究机会,不过不是强制的,我甚至都不知道你们参加与否,不过我还是会把这些放在这里,这样大家可能会找到一些有趣的事情去做
And I don't care if you want to put it over here.
我不介意你们把它放在这里。
You'll also see in a little while why both of these things would work this way, but it's not what I wanted. OK?
我应该把括弧,而不是方括号放在这里,你们稍后就会,明白为什么这两个符号在这里都是行得通的?
int Y Well, I said int X and int Y; so that gave me one square here called X, one square here ; or wherever, called Y, done, one was put in here; two was put in here, and then I called this function swap.
好的,我声明了int,X,和;,然后我这里有个正方形叫做X,一个正方形,叫做Y,完成,1放在这里;,2放在这里,然后我调用这个swap函数。
I'm gonna drag this thing here, zoom in, and voila, what do I now see?
我把这个东西拖放在这里,放大,现在我能看到什么?
Yeah, if my machine will come back up, there we go. So, I'm going to now go ahead and write a little piece of code, and I put it here and I hope you can actually see these better this time, let me uncomment that region.
让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。
I've got a little list I've made here called test.
这里有一小段列表,我放在这里做为测试用。
I'm putting them in there to make a point.
我把注释放在这里是为了这个目的。
But here, if I decide I'm going to store things not in x and y, but with some other set of names, for example, I've gotta go back into these pieces of code that use the points, and change them. So I've lost modularity.
除了要改下借口,但是这里,如果我决定,我不把值放在x和y中,而是和其他一些变量名进行绑定,例如这样的话,我就得回到使用这个点的代码,那儿去做更改了。
应用推荐