First of all, having read in that value, I can check to see, is it of the right type?
首先,读一下这个值,我们可以来检查看看是不是正确的类型?
And she's--and it's not the--and in fact, if you check the notes on the song, she's in fact, "The kind of girl you read about in new wave magazines."
而实际上,如果你去看歌曲的附注,实际上她是,"你在《新潮流》杂志中所读到的女孩"
So I'm going to check to see if- really can't read that thing, let me do it this way-- right, I'm going to increase the number of compares, and I'm going to check to say, is the thing I'm looking for at the i'th spot in the list?
让我们这样做吧-好-,我会去增加比较次数的计数器,然后去看看在第i处的元素,是不是我要找的呢?,这里s的意思就是,给定数组的?
And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.
因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。
应用推荐