• <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

            常用鏈接

            統(tǒng)計

            積分與排名

            百事通

            最新評論

            快排模板

            //快排模板
            /*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;
            }
            */

            /*結(jié)構(gòu)體
            #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 此最相思 閱讀(483) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久天天躁狠狠躁夜夜2020老熟妇 | 亚洲人成精品久久久久| 亚洲精品视频久久久| 久久亚洲国产最新网站| 韩国免费A级毛片久久| 国产精品丝袜久久久久久不卡 | 国产精品99久久精品爆乳| 无码任你躁久久久久久久| 久久99久久99精品免视看动漫| 久久青青草原精品影院| 精品久久久一二三区| 国产精品久久亚洲不卡动漫| 亚洲国产成人精品女人久久久| 狠狠色婷婷久久一区二区三区| 亚洲午夜福利精品久久| 天天久久狠狠色综合| 久久频这里精品99香蕉久| 久久被窝电影亚洲爽爽爽| 7777精品伊人久久久大香线蕉| 中文字幕成人精品久久不卡| 人妻精品久久久久中文字幕69| 99久久免费只有精品国产| 国产精品一区二区久久国产| 蜜桃麻豆WWW久久囤产精品| 久久99亚洲综合精品首页| 久久se精品一区精品二区| 精品久久久无码人妻中文字幕豆芽| 性欧美大战久久久久久久| 国产精品美女久久久久AV福利 | 无夜精品久久久久久| 91精品日韩人妻无码久久不卡| 久久ZYZ资源站无码中文动漫| 2021国产精品午夜久久| 久久人人爽人爽人人爽av| 色8激情欧美成人久久综合电| 国产精品伦理久久久久久| 激情久久久久久久久久| 久久精品国产一区二区电影| 久久精品无码一区二区三区免费| 久久99精品久久久久久噜噜| 99久久婷婷国产综合精品草原 |