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:我用结构体,然后排序,怎么不行呢

Posted by zsc08_wangqiang at 2010-02-16 16:10:10 on Problem 1007
In Reply To:Re:我用结构体,然后排序,怎么不行呢 Posted by:zsc08_wangqiang at 2010-02-16 16:08:56
> 
> 可能是这里吧,,改为:
> int comp(const void *a,const void *b){
     return (*(DNA*)a).num - (*(DNA*)b).num;
}

> 

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