Maybe they could make skin, maybe they could make other kinds of cells if you treated them the right way.
也许它们能生成皮肤,或者其他种类的细胞,只要你的操作恰当
- And here as promised is that other operator -- looks a little weird, but because assignment is already using the equal sign to assign one value on the right to a variable on the left.
在这里正像所承诺的那样,其他的操作-,看起来有点怪异,但是因为“=“已经被用来当赋值运算符了,用来把右边的一个值赋值给左边的变量。
So there are some downsides, in my view, to doing operator overloading, but there's some real pluses.
它还可以应用于其他一些东西,因此这样做操作符重载,就会产生一些负面影响了,以我的观点来看的话。
hey'd rather single step it through using Idol or something, than just read it and try and figure things out. The most important thing to remember when you're doing all of this is to be systematic.
比起阅读代码发现错误来他们,宁愿用内置的操作层,或者其他工具一步完成,你要记住的最重要的事情,就是要系统化的去做调试。
In particular functions that operate on the data, perhaps on other data as well. The key idea here is to bind together the data and the functions that operate on that data as a single thing.
特别是处理数据的函数,也可能处理其他数据,这里的关键思想就是,将函数和操作数据的函数。
Can't use them on Booleans, they have a different set of things. They do things like AND, and OR. And of course there's a bunch of other ones in there, I'm not going to put them all up, but we're building up a little collection, if you like, of those operations.
这个方面的东西,它们不能被应用于布尔类型,布尔类型有其他的一系列操作,比如AND,和OR之类的,当然还有很多其他的,我不会把他们一一列出来,但是我们会学习这些操作的一部分。
应用推荐