quickSort
#4

Oh sorry all is working.

But now how i can sort, when i have array where is for example player scores, and other variable money, i want to sort by score, but also write how much that player have money.

Code:
new Scorevariables[ 10 ];
new Moneyvarialbes[ 10 ];

Scorevariables[ 0 ] = 500;
Moneyvarialbes[ 0 ] = 200000;

Scorevariables[ 1 ] = 200;
Moneyvarialbes[ 1] = 500;

Scorevariables[ 2 ] = 2000;
Moneyvarialbes[ 2 ] = 586000;
Using sort by score i will get

Code:
1
0
2
But making with money it will look like:
Code:
1 - 500
0 - 200000
2 - 586000
Reply


Messages In This Thread
quickSort - by MerryDeer - 29.08.2016, 11:44
Re: quickSort - by Kaliber - 29.08.2016, 12:58
Re: quickSort - by Gammix - 29.08.2016, 23:22
Re: quickSort - by MerryDeer - 30.08.2016, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)