上一页 1 ··· 6 7 8 9 10
摘要: 1 #include 2 void sort(int a[],int left,int right)//可以理解为一个区域的数据和左、右端点。 3 { 4 int temp=a[left],i=left,j=right;//temp的作用是将一个数值储存起来,因为两个数值无法做到直接交换,要有一个中间变量。 5 if(i>=j)return;//当右端点在左端点左边或... 阅读全文
posted @ 2019-02-17 20:01 念文丶 阅读(499) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10