随机化快速排序

#include <iostream> #include <time.h> #include <stdlib.h> using namespace std; int random(int a,int b) { srand(NULL); return rand()%(b-a)+a; } void exchange(int &a,int &b) { int temp; temp=a;
相关文章
相关标签/搜索