一种布尔运算符,当与其相关联的两个变量中仅有一个为真时,其真值表才取值为真。
Boolean operator that gives a truth table value of true if only one of the two variables it connects is true.
swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.
我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。
应用推荐