&sq) { ElemType t; int i = 0, j = sq.len - 1; while (i<j) { while (sq.data[i] % 2 == 1) i++;//奇数...向后 while (sq.data[j] % 2 == 0) j--;//偶数 向前 if(i<j) ...
&sq) { ElemType t; int i = 0, j = sq.len - 1; while (i<j) { while (sq.data[i] % 2 == 1) i++;//奇数...向后 while (sq.data[j] % 2 == 0) j--;//偶数 向前 if(i<j) ...