error:too few arguments to function a^qsorta^
error:too few arguments to function a^qsorta^
I don't know why it says that there are too few arguments when i have the same amount in both the prototype and declaration. What is going on?
/*Prototype of the quick sort*/
void quicksort(Emprecord Employeelist[], int start, int finish);
void quicksort(Emprecord Employeelist[], int start, int finish)
{}Code:int left=start; int right=finish; char pivot[21]; strcpy(pivot,Employeelist[(start+finish)/2].last); while(left<right) {} if(start<right) qsort(Employeelist, start, right); if(left<finish) qsort(Employeelist, finish, left);Code:while(strcmp(Employeelist[left].last, pivot)<0) left++; while(strcmo(Employeelist[right].last,pivot)>0) right--; if (left<=right); {}Code:Emprecord temp[1]; temp[0]=Employeelist[left]; Employeelist[left]=Employeelist[right]; Employeelist[right]=temp[0]; left++; right--;



LinkBack URL
About LinkBacks


