Sort array.HELP PLEASE!
#1

If I have a array: PlayerInfo[5];
And it like this:
Код:
PlayerInfo[0] = 0
PlayerInfo[1] = 0
PlayerInfo[2] = 0
PlayerInfo[3] = 4
PlayerInfo[4] = 5
I want to move all number 0 to last(number 0 maybe not only 3,even not.The above code is just one of the cases)
Anyway to do that?
It shuold be this...:
Код:
PlayerInfo[0] = 4
PlayerInfo[1] = 5
PlayerInfo[2] = 0
PlayerInfo[3] = 0
PlayerInfo[4] = 0
Reply


Messages In This Thread
Sort array.HELP PLEASE! - by 3417512908 - 28.12.2018, 13:47
Re: Sort array.HELP PLEASE! - by d1git - 28.12.2018, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)