Array Sorting help!
#6

pawn Код:
for(new i = (sizeof a)-1; i > 0; i--)
{
    if(a[i] >= a[i-1]) continue;
    a[i] ^= (a[i-1] ^= ( a[i] ^= a[i-1] ) );
    i = sizeof a;
    printf("%i", i);
}
Result
Код:
input(18) : warning 203: symbol is never used: "b"
10
10
10
10
10
10
10
10
10
Error: read EIO (EIO)

The server stopped.
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: 2 Guest(s)