In the second case, I found in the next smallest element and moved here, taking what was there and moving it on, in this case I would swap the 4 and the 8, and in next case I wouldn't have to do anything.
在第二次遍历中,我找到了,第二小的元素,把它移到这里,把这里原来的元素移到哪里,在这一次遍历中,我会把8和4交换,然后一次遍历,不会做任何事情。
And I've reversed the fraction here because of the negative sign here.
我交换了分子和分母,因为这里有个负号。
I'm simply saying swap X with Y, but this 2 won't work, because where are X and Y defined?
我只简单地说交换X和Y,但是这两行不起作用,因为X和Y是在哪里定义的呢?
and talking to other people ,I thought that is a very healthy thing to do and as Zvi happened to live in my dorm and I thought it would be a great opportunity to exchange ideas, and to get to discover more.
和其他人聊天,我觉得这是,非常健康的事情,正好Zvi和我一个寝室,我觉得,我们有机会交换想法,了解更多。
They won't invert the relation.
不是简单地交换 Ax 和 Ax'
B It swaps this one and these two, A and B, but it has no access to main's memory.
它交换了这个和这两个变量,A和,但是它没有介入到main的内存中。
This code does swap the two values, A and B. However, when I run this program, something happens.
这个代码没有交换那两个值,A和B,但是,当我运行这个程序时,有些事情发生了。
应用推荐