So even though we think of conditions as being Boolean values true or false, really underneath the hood true means anything other than zero.
即使我们考虑,布尔值的真假条件,在底层“真“表示非零。
Yes or no. That can give you a true or false, a one or a zero answer. What about this?
是或者否,它告诉你真假,1,或,0,这个怎么样?
People have argued over the authenticity of them, although I think by now it is established that they are his.
虽然人们曾质疑其真假,但我想现在应该尘埃落定,确定是他亲笔所写。
But for what it's worth, I don't in fact believe they're actually what's going to happen.
但不管真假,我不相信这就是会发生的事情。
This is just a little inelegant and so one of the things we'll introduce early on is this idea of abstraction or design whereby if you wanna represent the ideas of 0 and 1, true or false, well, let's give them a synonym like true or false.
这么说有点粗野,我要接着讲的是这种抽象的思想,或者用这个来描绘设计出,真和假的思想,我们可以给真假各指定一个同义词。
What else can you detect as a yes or no answer is the mouse down?
当鼠标点下时,除了检查真假还能检测什么?
So we talked about Mr. Bool briefly last week in this idea of true or false, but in C, you don't have a Boolean data type.
我们上周简短地谈论过Bool先生的,真假的逻辑思想,但是在C语言里,没有布尔数据类型。
应用推荐