close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
c++ qsort中 針對char array來排序
Jul 31st 2013, 18:47

compare 那個函式該怎麼寫

 int (*myCompare)(const char * pc1,const char *pc2) { 
     return (*pc1 > *pc2) ? (1) : (*pc1 == *pc2 ? 0 : -1);}

 另3錯誤: 
 1. 
char a[5]="5643";
 2. example::qsort(a,  sizeof(a)-1, sizeof( a[0]), myCompare);

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kkosk8eq8o7k4 的頭像
    kkosk8eq8o7k4

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    kkosk8eq8o7k4 發表在 痞客邦 留言(0) 人氣()