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 |
return strcmp((char*)a,(char*)b); 这样最好, 要求用字符串数组, char list[100000][8]; 要这样声明In Reply To:由一个qsort引发的OLE,请高手解答 Posted by:DancingBlue at 2006-07-26 19:27:59 > char* list[100000]; > int cmp(const void * a,const void * b){ > return strcmp((char*)(&a),(char*)(&b)); > } > qsort(list,n,sizeof(list[0]),cmp); > > 这样用应该是没错的吧,但是...结果就是OLE,请高手给予指点,谢谢 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator