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


            青青青伊人色综合久久| 国产69精品久久久久APP下载| 久久久久亚洲AV片无码下载蜜桃| 久久综合狠狠综合久久| 久久国产高清字幕中文| 亚洲精品99久久久久中文字幕 | 久久91精品国产91久久户| 国产精品99久久久久久www| 亚洲级αV无码毛片久久精品| 青青热久久综合网伊人| 亚洲乱码精品久久久久..| 精品久久人人妻人人做精品| 99久久人妻无码精品系列蜜桃| 久久精品这里只有精99品| 精品国产一区二区三区久久久狼| 一级A毛片免费观看久久精品| 一本久久久久久久| 成人国内精品久久久久影院| 亚洲狠狠婷婷综合久久蜜芽| 精品综合久久久久久98| 久久精品18| 久久久久免费视频| 久久噜噜久久久精品66| 国产高潮久久免费观看| 久久伊人精品青青草原高清| 99久久人妻无码精品系列| 99久久99这里只有免费的精品| 蜜臀av性久久久久蜜臀aⅴ麻豆 | 久久人人爽人人爽人人片av高请| 久久综合久久综合亚洲| 久久久午夜精品| 人妻无码精品久久亚瑟影视| 国内精品久久久久影院老司| 久久久国产视频| 久久人人青草97香蕉| 久久天天躁狠狠躁夜夜2020一| 综合久久一区二区三区| 久久精品中文字幕一区| 久久婷婷五月综合色奶水99啪| 国产一级持黄大片99久久| 久久夜色精品国产亚洲|