摘要: 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... 阅读全文
posted @ 2014-02-07 16:16 KinXing 阅读(535) 评论(0) 推荐(0) 编辑