28.12.2018, 13:47
If I have a array: PlayerInfo[5];
And it like this:
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...:
And it like this:
Код:
PlayerInfo[0] = 0 PlayerInfo[1] = 0 PlayerInfo[2] = 0 PlayerInfo[3] = 4 PlayerInfo[4] = 5
Anyway to do that?
It shuold be this...:
Код:
PlayerInfo[0] = 4 PlayerInfo[1] = 5 PlayerInfo[2] = 0 PlayerInfo[3] = 0 PlayerInfo[4] = 0