| ||||||||||
| 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:那这样怎么样用sort函数呢?In Reply To:那这样怎么样用sort函数呢? Posted by:testdirk at 2007-03-01 12:04:52 bool cmp(ARRAY a, ARRAY b) {
return a.a<b.a;
}
sort(array, array+n, cmp);
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator