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

这种情况就把array[N][2]写成一个struct。

Posted by Acsaga at 2007-03-01 11:31:27 on Problem 1002
In Reply To:假如我要按照一个二维数组的[i][0]排序,但排序的同时我也要交换[i][1]的位置,那我是否就只能自己编quicksort而不能用stl了呢? Posted by:Nowitzki at 2007-03-01 10:56:04
比如
struct ARRAY {
int a,b;
} array[N];

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