• <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 此最相思 閱讀(483) 評論(0)  編輯 收藏 引用

            精品久久久久国产免费 | 久久夜色精品国产网站| 久久亚洲精品国产亚洲老地址| 久久高清一级毛片| 99久久精品免费看国产一区二区三区 | 91精品国产高清91久久久久久| 久久亚洲综合色一区二区三区| 久久精品国产亚洲Aⅴ香蕉| 久久婷婷人人澡人人爽人人爱 | 99久久99久久精品国产片果冻 | 亚洲精品美女久久久久99小说| 久久国产热精品波多野结衣AV| 九九久久精品国产| 久久久久亚洲AV无码专区体验| 久久996热精品xxxx| 精品乱码久久久久久久| 久久久无码精品午夜| 国产精品一久久香蕉国产线看| 综合久久精品色| 狠狠人妻久久久久久综合蜜桃| 久久久亚洲欧洲日产国码aⅴ| 久久高清一级毛片| 国产福利电影一区二区三区久久久久成人精品综合 | 99久久精品免费看国产| 精品久久久久久国产| 久久这里只有精品视频99| 精品久久久久久无码中文字幕一区| 亚洲AⅤ优女AV综合久久久| 久久精品国产亚洲欧美| 久久久久亚洲av无码专区喷水| 国产精品久久久久久久人人看| 久久久受www免费人成| 久久精品国产国产精品四凭| 93精91精品国产综合久久香蕉 | 日韩电影久久久被窝网| 精品久久久久久国产牛牛app| 日本精品久久久中文字幕| 亚洲国产成人久久精品影视| 美女写真久久影院| 久久99精品国产99久久6男男| 久久91精品久久91综合|