摘要:
1 #include 2 using namespace std; 3 4 void swap(int &x, int &y) 5 { 6 x = x^y; 7 y = x^y; 8 x = x^y; 9 }10 11 void rand_n(int array[], int len) 12 {13 int i;14 for (i = 0; i < len; ++i)15 {16 swap(array[i], array[rand() % len]);17 }18 19 for (i = 0; i < len... 阅读全文