OK, so I don't have to, it's a great question, I don't have to create a second one for cmp.
但是参数的顺序是相反的,好,那么我就不必,这是个很不错的问题,我就不必再创建。
cmp My handout's wrong, which I discovered this morning after I printed them all out.
还有,我的课堂手册有错误,我上午打印完才发现有错误。
What's cmp doing as a method?
是用来做什么的?
Same thing with cmp, that's just saying greater than, and greater than now can apply to strings, it can apply to floats, it could apply to points, it could add other pieces into it.
是不是相等?,这跟cmp是一样的,这个只不过是说大于,大于现在可以应用于字符串,可以应用于浮点数,可以应用于点。
It's still calling cmp, but it's knowing that cmp is just reversing the order of the arguments.
下一次我会带上正确的眼镜的,这还是会去调用cmp方法的,但是我们知道。
应用推荐