All right. The fourth thing I'm going to do, is I'm going to then construct the block of code.
好,我要做的第四件事情就是,我会去写这块循环代码。
so that's great that a lot of people have enough time to be in something that's not math or science related.
很多人投入了时间,来做与数学或科学无关的事情,这真的太好了。
OK, in each case, what these things are doing, is they're doing, what sometimes gets referred to as operator overloading.
这将会是个默认的或者说是,通用的来比较对象是否相同的方法,好,在每个例子中,这些事情正在做的,就是,一些与操作符重载有关的东西。
OK. Second thing I need to do, though, is I need to, when I get those values, I want to hang on to them.
好,我需要做的第二件事情,就是我需要去,当我得到这些值后,我想抓住这些值。
All right. I can do other things.
好,我可以做其他的事情。
Well, I can do the same thing.
好,我可以做同样的事情。
I've certainly written code that has this problem, I've tried to use my own code that has this problem, and good to us, right, good hygiene, I'm going to use that word again here, of getting into the habit of writing defensive code up front, it's part of that collection of things that you ought to do is a great thing to do.
我举手了吧?,我当然写过犯这种错误的程序了,我也尝试过应用含有这种错误的代码,不错,好的卫生,我还是要用这个词,对我们有帮助,养成写防卫性,代码的好习惯,是你应该做的,一系列事情之一,也是我们日后要做的主要的事情。
So the next little piece of code I've written here, just move down to it slightly.
好,我可能想做的一件事情是,这两个点是不是同一个点呢?,因此我在下面写的。
Right, what's the second thing I do?
好,我要做的第二件事情是什么?
应用推荐