<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    天空是藍色的

    做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執行exe #helloworld //運行exe
    數據加載中……
    [轉載]快速排序
    快速排序 
     
    class Test {
     
     public static void quickSort( int
    [] intArr, int startIndex, int endIndex ) {
      int left 
    = startIndex;
      int right = endIndex;
      int pivot = (left+right)/2;
      int tmp = 0;
      
      do {
       while( intArr
    [left]<intArr[pivot] )  left++;
       while( intArr[right] > intArr[pivot] ) right--;
       
       if( left<
    =right ) {
        tmp 
    = intArr[left];
        intArr[left] = intArr[right];
        intArr[right] = tmp;
        left++;
        right--;
       }
      }while(left<
    =right);
      
      if( left<endIndex ) quickSort( intArr
    , left, endIndex );
      if( right>startIndex ) quickSort( intArr, startIndex, right);
     }
          
     public static void main( String
    [] argus ) {
      int
    [] test = new int[]{5,4,3,2,1};
      quickSort( test, 0 , test.length-1 );
      for ( int i=0; i<test.length; i++ )  System.out.print( "test["+i+"]="+test[i]+"    " );
     }

    http://spaces.msn.com/members/zhangqingqi/

    posted on 2005-12-31 10:30 bluesky 閱讀(491) 評論(0)  編輯  收藏 所屬分類: 記事本

    主站蜘蛛池模板: eeuss影院免费直达入口| 亚洲欧美一区二区三区日产| 黄色一级毛片免费| 日本不卡视频免费| 亚洲人成网站色7799| 午夜小视频免费观看| 亚洲欧好州第一的日产suv| 卡1卡2卡3卡4卡5免费视频| 6080午夜一级毛片免费看 | 无码人妻一区二区三区免费 | 亚洲精品无码专区在线在线播放| 永久免费无码网站在线观看个| www.亚洲一区| 男女拍拍拍免费视频网站| 亚洲人成网77777亚洲色| 日本免费中文字幕| 亚洲黄色在线观看| 无码区日韩特区永久免费系列 | 日韩免费一区二区三区在线 | 中国人xxxxx69免费视频| 亚洲精品国产第1页| 女人张开腿给人桶免费视频| 亚洲AV香蕉一区区二区三区| 九月婷婷亚洲综合在线| 爽爽爽爽爽爽爽成人免费观看| 亚洲欧洲一区二区| 成人女人A级毛片免费软件| 亚洲午夜成人精品无码色欲| 青青青国产色视频在线观看国产亚洲欧洲国产综合| 亚洲国产精品无码久久98| 亚洲第一黄片大全| 久久国产精品免费网站| 97久久国产亚洲精品超碰热| 免费人成网站在线播放| 亚洲国产成人超福利久久精品| 无码国产精品久久一区免费 | 亚洲中文字幕无码av永久| 亚洲成a人在线看天堂无码| 久99久精品免费视频热77| 亚洲一本一道一区二区三区| 亚洲精品国产va在线观看蜜芽|