STUDENT: Good question. Sounds like a reasonable guess How in the world am I going to compare a string to a number?
学生:不可闻的声音:,很好的问题,听起来像一个很合理的猜测,我到底该怎么对一个字符串,和一个数字进行比较呢?
STUDENT: you're jumping ahead of me, great.
学生:不可闻的声音:,你说到我正要讲的东西上了。
STUDENT: Yeah. It'll go forever. Absolutely, right?
学生:不可闻的声音:,程序会一直运行下去,绝对是?
STUDENT: PROFESSOR: What do you think happens?
学生:不可闻的声音:,教授:你认为会发生什么呢?
STUDENT: PROFESSOR: Or equal equal?
学生:不可闻的声音:,教授:或者双等于?
OK. Try again.
不可闻的声音】好,再试试。
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
STUDENT: Let me compare y to Yeah, it's not doing all of the comparisons.
学生:让我把y和【不可闻的声音】做比较,对了,它并没有对所有的情况作比较。
STUDENT: PROFESSOR: Right, cmp other, so how would I call this?
学生:不可闻的声音:,教授:对,cmp另外一个对象,那么我怎么来调用这个方法呢?
应用推荐