Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
大牛门帮帮我吧,我不清楚为什么这样一改qsort会有如此大的区别,谢谢了,int sort_function(const void *a,const void *b) { if(*(unsigned int*)a>*(unsigned int*)b)return 1; else //if(*(unsigned int*)a==*(unsigned int*)b)return 0;<-缺这个就是不行 return -1; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator