45 int *location=(
int *)malloc(
sizeof(
int)*n);
49 printf(
"\n Allocation of array failure!");
65 printf(
"\n n=%d should be an integer over 1!",n);
87 x[i]=(u[i] + x[i+1]*num)/(num+1);
88 location[i]=location[i+1];
96 x[i]=( x[i]* (j-i) + x[j]* num ) / (location[j] -i +1);
97 location[i]=location[j];
120 for(j=i+1;j<=location[i];j++){
147 double sum, max, mean;
149 int *location=(
int *)malloc(
sizeof(
int)*n);
153 printf(
"\n Allocation of array failure!");
204 for(j=i+1;j<=location[i];j++){