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

请教一下在本题中qsort()和bsearch()该怎么使用

Posted by mico at 2006-04-28 14:24:38 on Problem 2503
比如定义下面一个结构体

typedef struct str
{
char str1[10];
char str2[10];
}str;

str strin[10000];

怎么将它按照str1升序排列?

或者是 char  str[10000][2][10];

怎么按照 str[i][0] 进行排序?

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