- 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.
在这里正像所承诺的那样,其他的操作-,看起来有点怪异,但是因为“=“已经被用来当赋值运算符了,用来把右边的一个值赋值给左边的变量。
The semantics was what caused the problem, because the operator was expecting a particular kind of structure there.
引起问题的是语义,因为运算符需要的是,一种特定种类的数据结构。
Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.
赋值操作符把右边的东西,复制到左边。
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.
我也想指出的是,我们能想到的最简单情况,的哈密顿算符,是一个只有一个电子,也只有一个原子核的氢原子。
So hopefully there is indeed a way to fix this, but it looks as though the division operator, the single slash is division but -- and here's a curiosity about many programming languages -- because 17 is an integer and because 13 is an integer, why do I say that?
我的确希望有一个方法来修正这个错误,但是看起来,好像那个除法操作,那个斜杠是除法,但是--对于很多编程语言来说,是挺奇怪的--因为17是一个整数,13也是一个整数,为什么我这样说?
Y I'm not passing an x and I'm not passing a Y, &y I'm passing an ampersand x and ampersand y and can you take a guess as to what the ampersand operator must mean?
我不是传递X,也不是传递,我传递的是&x和,你们可以猜一猜,这个&符号是什么意思?
Turns out with a Boolean expression, you don't have use the equality operator equals equals, you can just say what you mean.
结果用一个bool表达式,你不需要使用等号操作符“==“了,你只要说出你的意思。
And I'm using the so-called "assignment operator," a single equals sign to store in n what?
我用了一个复制操作符“,一个等号向n中存储了什么?
And I don't quite remember from reading or from class how big these things are, well, it turns out -- and this is sometimes useful, later on more likely than now -- but C has a size of operator that takes an argument in parenthesis and it will tell you how much space is used to store that particular data type.
我不太记得类中的这些类型,是多大的,嗯,结果是--这个在以后比现在,可能是更有用的--不过C语言中有个sizeof的操作符,其中括号里有一个参数,它会告诉我们,要存储一个类型的数据,需要占用多大空间。
应用推荐