| ||||||||||
| 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:?????我也是这样排序的啊In Reply To:?????我也是这样排序的啊 Posted by:frkstyc at 2005-07-08 17:10:52 我是这样排序的
bool cmp(const Type& a,const Type& b)
{
int ans=strcmp(a.sorted,b.sorted);
if(ans<0) return true;
else if(ans>0) return false;
else
{
int ans1=strcmp(a.original,b.original);
if(ans1<0) return true;
else return false;
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator