标签:return rsize i++ 删除 ble oid ret ++ code
int cmp(const void* a,const void* b){ return *(int*)a-*(int*)b; } double trimMean(int* arr, int arrSize){ qsort(arr,arrSize,sizeof(int),cmp); int num=arrSize/20,i; double sum=0.0; for (i=num; i<arrSize-num; i++) sum+=arr[i]; return sum/(arrSize-2*num); }
标签:return rsize i++ 删除 ble oid ret ++ code
原文地址:https://www.cnblogs.com/ganxiang/p/13947795.html