I remember asking this Gosling in one of my interviews of him why he left out operator overloading (I don't think that question and answer ended up getting published).
我记得在采访Gosling时曾问过他为何放弃操作符重载(我想该问题和答案还尚未公开过)。
After pulling out huge blocks of concrete and piles of dirt from the hole, the excavator operator got a little overzealous.
从洞里挖出大块的混凝土和成堆的泥土后,挖掘机操作员有点过于热心了。
All that is required is for the operator to work out how to sniff appropriately.
对于操作者来说所需的一切就是如何做出适当的吸嗅动作。
So here I've written for the hydrogen atom that deceptively simple form of the Schrodinger equation, where we don't actually write out the Hamiltonian operator, but you remember that's a series of second derivatives, so we have a differential equation that were actually dealing with.
这里我写出了,氢原子薛定谔方程的,最简单形式,这里我们实际上,没有写出哈密顿算符,但是请记住那你有,一系列的二次导数,所有我们实际上会处理一个微分方程。
What I want to point out also is that this h hat, the Hamiltonian operator written out for the simplest case we can even imagine, which is a hydrogen atom where we only have one electron that we're dealing with, and of course, one nucleus.
我也想指出的是,我们能想到的最简单情况,的哈密顿算符,是一个只有一个电子,也只有一个原子核的氢原子。
Turns out with a Boolean expression, you don't have use the equality operator equals equals, you can just say what you mean.
结果用一个bool表达式,你不需要使用等号操作符“==“了,你只要说出你的意思。
应用推荐