Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:那这样怎么样用sort函数呢?

Posted by aCSaga at 2007-03-01 12:37:28 on Problem 1002
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator