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 |
?????我也是这样排序的啊In Reply To:Re:sigh~~~~,strcmp返回第一个不同字符相减的值,不一定是+-1的 Posted by:Ikki at 2005-07-08 17:08:39 int comp2(const WORD *lhs, const WORD *rhs) { int c = strcmp(lhs->sorted, rhs->sorted); if(c != 0) { return c; } else { return strcmp(lhs->orig, rhs->orig); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator