| ||||||||||
| 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 | |||||||||
Re:问个字符串数组排序的CMP函数,谢过In Reply To:问个字符串数组排序的CMP函数,谢过 Posted by:Bter at 2006-11-18 12:41:00 int cmp(const void *p,const void *q)
{
return strcmp((char *)p,(char *)q);
}
qsort(word,n,sizeof(word[0]),cmp);
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator