I
IN_C_CRADDLE
Hello all,
I am newbie trying to sort as follows :
Before:
int a[9][2] = {0,5,
0,10,
1,2,
0,1,
0,8,
1,9,
1,12,
0,11,
0,15};
After Sorting:
a[9][2] = {
0,1,
1,2,
0,5,
0,8,
1,9,
0,10,
0,11,
1,12,
0,15};
I want to sort a[][1] in in ascending order and copy both a[][0] and a[][1].
Please help me.
~regards,
Dilip
I am newbie trying to sort as follows :
Before:
int a[9][2] = {0,5,
0,10,
1,2,
0,1,
0,8,
1,9,
1,12,
0,11,
0,15};
After Sorting:
a[9][2] = {
0,1,
1,2,
0,5,
0,8,
1,9,
0,10,
0,11,
1,12,
0,15};
I want to sort a[][1] in in ascending order and copy both a[][0] and a[][1].
Please help me.
~regards,
Dilip