No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i'm trying to write a quicksort but my partition is not working properly can some help me please [code=c++] void parttition(int myArray[],int first, int last); void quicksort(int myArray[],int first, int last); void quick( int size) { int myArray[10]; int x; srand((unsigned)time(0)); for (x=0;x<size;x++) { int random_integer = rand()/25; myArray[x]=random_integer; printf("%d\n",myArray[x]); … |
|
Hi, i've tried to get my quicksort to work, but i think because i have been looking at it for so long i cant see the problem with it so if someone can spot my mistake that would be great! [code=cpp]int parttition(int myArray[],int first, int last); void quicksort(int myArray[],int first, … |