Array Sorting help!
#1

Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 10
new a[MAX_PLAYERS] = { 90 , 67 , 99 , 11 , 9 , 21 , 58, 0, 47 , 8 };
new b[MAX_PLAYERS];
i want the output as

Quote:

Sorted: 0 -> ID: 7
Sorted: 8 -> ID: 9
Sorted: 9 -> ID: 4
Sorted: 11 -> ID: 3
Sorted: 21 -> ID: 5
Sorted: 47 -> ID: 8
Sorted: 58 -> ID: 6
Sorted: 67 -> ID: 1
Sorted: 90 -> ID: 2
Sorted: 99 -> ID: 0

i can just sort sort a[] (quicksort) so i get the sorted array but i wanna show which sorted values belongs to which playerid ...

understand?
Reply


Messages In This Thread
Array Sorting help! - by Unknown1234 - 23.12.2013, 15:12
Re: Array Sorting help! - by Patrick - 23.12.2013, 15:44
Re: Array Sorting help! - by Unknown1234 - 23.12.2013, 15:59
Re: Array Sorting help! - by Pottus - 23.12.2013, 16:09
AW: Array Sorting help! - by BigETI - 23.12.2013, 16:16
Re: AW: Array Sorting help! - by Patrick - 23.12.2013, 16:24
AW: Array Sorting help! - by BigETI - 23.12.2013, 16:47
AW: Array Sorting help! - by Nero_3D - 23.12.2013, 17:05
Re: Array Sorting help! - by Unknown1234 - 24.12.2013, 03:24

Forum Jump:


Users browsing this thread: 5 Guest(s)