• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            misschuer

            常用鏈接

            統計

            積分與排名

            百事通

            最新評論

            快排模板

            //快排模板
            /*double */
            /*#include<iostream>
            #include<algorithm>
            using namespace std;
            int cmp( const void *a , const void *b )

                return *(double *)a - *(double *)b;
            }
            int main()
            {
                double a[10]={1,5,6,5,4,9,7,8,6,0};
                qsort(a,10,sizeof(a[0]),cmp);
                for(int i=0;i<10;i++)
                    cout<<a[i]<<" ";
                return 1;
            }
             
            */

            /*int
            #include<iostream>
            #include<algorithm>
            using namespace std;
            int cmp( const void *a , const void *b )

                return *(int *)a - *(int *)b;
            }
            int main()
            {
                int a[10]={1,5,6,5,4,9,7,8,6,0};
                qsort(a,10,sizeof(a[0]),cmp);
                for(int i=0;i<10;i++)
                    cout<<a[i]<<" ";
                return 1;
            }
            */

            /*char
            #include<iostream>
            #include<algorithm>
            using namespace std;
            int cmp( const void *a , const void *b )

                return *(char *)a - *(char *)b;
            }
            int main()
            {
                char a[10]={'1','5','6','5','4','9','7','8','6','0'};
                qsort(a,10,sizeof(a[0]),cmp);
                for(int i=0;i<10;i++)
                    cout<<a[i]<<" ";
                return 1;
            }
            */

            /*字符串
            #include<iostream>
            #include<algorithm>
            #include<string>
            using namespace std;
            int cmp(const void *p1,const void *p2)
            {
                return strcmp((char *)p1,(char *)p2);
            }
            int main()
            {
                char a[10][10]={"123","524","645","545","114","2129","765","878","656","021"};
                qsort(a,10,sizeof(a[0]),cmp);
                for(int i=0;i<10;i++)
                    cout<<a[i]<<endl;
                return 1;
            }
            */

            /*結構體
            #include<iostream>
            #include<algorithm>
            #include<string>
            using namespace std;
            struct node
            {
                int d1;
                int d2;
            };
            int cmp(const void *p1,const void *p2)
            {
                node *p=(node *)p1,*q=(node *)p2;
                if(p->d1!=q->d1)
                    return (p->d1-q->d1);
                return (p->d2-q->d2);
            }
            int main()
            {
                node a[10]={{1,3},{5,4},{6,5},{5,5},{1,4},{2,9},{7,5},{8,8},{6,6},{0,1}};
                qsort(a,10,sizeof(a[0]),cmp);
                for(int i=0;i<10;i++)
                    cout<<a[i].d1<<a[i].d2<<endl;
                return 1;
            }
            */

            posted on 2009-04-18 10:45 此最相思 閱讀(482) 評論(0)  編輯 收藏 引用

            久久无码高潮喷水| Xx性欧美肥妇精品久久久久久| 伊人久久大香线蕉AV一区二区| 国产美女亚洲精品久久久综合| 久久99国产精品久久99果冻传媒| 欧洲国产伦久久久久久久| 国产偷久久久精品专区| 激情久久久久久久久久| 日韩精品久久久久久免费| 久久有码中文字幕| 久久精品免费一区二区三区| 亚洲国产成人精品久久久国产成人一区二区三区综| 久久人妻少妇嫩草AV蜜桃| 国产激情久久久久影院老熟女免费 | 久久久久亚洲AV无码永不| 99久久精品无码一区二区毛片| 99久久夜色精品国产网站| 国产毛片久久久久久国产毛片| 亚洲第一极品精品无码久久| 久久免费视频一区| 99精品伊人久久久大香线蕉| 波多野结衣中文字幕久久| 久久99久国产麻精品66| 久久最新免费视频| 久久精品夜色噜噜亚洲A∨| 四虎国产精品免费久久5151| 国产精品99精品久久免费| 97精品伊人久久久大香线蕉| 亚洲精品成人久久久| 久久久久国产一级毛片高清板| 午夜不卡888久久| 国产激情久久久久影院老熟女| 一本大道加勒比久久综合| 91精品国产91久久| 精品久久久久久久中文字幕| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久99精品国产麻豆宅宅| 久久99精品久久久久久动态图| 无码精品久久久天天影视| 久久九九精品99国产精品| 国产成人久久激情91|