First, it's pointing to the beginning of the list, which initially might be down here at but after a while, might be part way through. And to that, I simply add a halfway point, and then I check.
列表中间的一个部分了,然后我求出列表的中值点,然后看看该点的值是不是等于目标值,如果是的话就完成了,如果不是的话,如果中位值大于我要找的目标值。
It all sort of depends on how you hit it off with somebody, whether there's a spark.
这要看你是不是跟那个人合得来,能不能擦出火花。
How can Milton know that he was really and truly called by God to be a great poet until he writes something - it's not a bad question - until he has something actually to show for his talent?
弥尔顿怎么知道他是不是真的被,上帝选中了去做一个伟大的诗人,除非他真的创作出点儿什么--这是一个不坏的问题,-直到他真有可以证明自己才能的作品?
But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
Armed with your pet diagnosis of where the argument goes wrong there, you've got to ask, "Does it also go wrong in the mind and body case?"
当你找到了一种判断这个论证,是否错误的方法时,你肯定会问,在心灵与身体的问题上,是不是也出了同样的错误
应用推荐