日期:2014-05-17 浏览次数:20966 次
int count = 1; for (int i = 0; i < a.Length; i += 4) { if (count % 2 == 0) { swap(ref a[i], ref a[i + 3]); swap(ref a[i + 1], ref a[i + 2]); } count++; }