亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    C語言函數(shù)大全 q

    函數(shù)名: qsort
    功  能: 使用快速排序例程進行排序
    用  法: void qsort(void *base, int nelem, int width, int (*fcmp)());
    程序例:

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int sort_function( const void *a, const void *b);

    char list[5][4] = { “cat”, “car”, “cab”, “cap”, “can” };
     

    int main(void)
    {
       int  x;

       qsort((void *)list, 5, sizeof(list[0]), sort_function);
       for (x = 0; x < 5; x++)
          printf(“%sn”, list[x]);
       return 0;
    }

    int sort_function( const void *a, const void *b)
    {
       return( strcmp(a,b) );
    }

     

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號