久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

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

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

      函數(shù)名: qsort
      功  能: 使用快速排序例程進(jìn)行排序
      用  法: 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號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)