Okay, so while not equal to, so bang equals, exclamation point equals is computer science syntax for saying not equal to, 0 while not equal to 2 which it is not, it is equal to 0.
好的,尽管不等于不是相等的反写,但惊叹号在计算机科学的语法是不等于的意思,尽管不等于2,但它是等于。
So now, in this case, this code is going to, when we get here, check, and if you haven't seen that strange thing there, that exclamation point in bang computer-ese called a bang, it says x if ANS star ANS is not equal to x, all right?
那么现在,在这个例子中,当我们执行到这里,代码会去检查,如果你没有看到过这个奇怪的东西,这个感叹号在计算机学中被叫做,代码的意思是如果ANS的平方不等于?
We began here so at this point in the story the next thing that's going to happen is this line called Print F that says swap exclamation point, right?
我们从这里开始,在这里,下一步将要发生了的事情是,这行叫做printf的代码,打印:“交换完成!“对不?
I then assign thankful true, if so, but notice this little trick: -- I'm going to keep doing this while I am bang thankful -- bang exclamation point means "not," so this is shorthand, sort of clever elegant notation for "while I'm not thankful, keep doing this."
然后我给thankful赋true值,如果是这样,注意这里有个小技巧:,我将一直这样做,当我用满意时-,感叹号在这里的意思是“非“,这是一个可速记的,有几分机灵优雅的符号,用来说明:“当我不满意,保持这样做“
应用推荐