代码语言:javascript 复制 voidSwap(int*a,int*b){int tmp=0;tmp=*a;*a=*b;*b=tmp;}intGetMidi(int*a,int begin,int end){int midi=(begin+end)/2;if(a[begin]>a[midi]){if(a[midi]>a[end]){returnmidi;}elseif(a[end]>a[begin]){returnbegin;}else{returnend;}}else{if(a[begin]>...