相关代码 |
|
/* #define _M_AXP 64 #include #include #include void run(int* pData,int left,int right) { int i,j; int middle,iTemp; i = left; j = right; middle = pData[(left+right)/2]; //洗耖?? do{ while((pData[i] i++; while((pData[j]>middle) && (j>left))//?橛?仝愚橥耖?钴? j--; if(i { //芜? iTemp = pData[i]; pData[i] = pData[j]; pData[j] = iTemp; i++; j--; } }while(i
相关资源 |
|