Ordenar nъmeros.
#1

Bueno, me gustarнa conocer un mйtodo rбpido para ordenar nъmeros de mayor a menor.
Reply
#2

esto ya lo preguntaste..
https://sampforum.blast.hk/showthread.php?tid=531218

http://es.wikipedia.org/wiki/Ordenamiento_de_burbuja

pawn Код:
bubbleSort(array[], length)
{
    new i,j;
    for(i=0;i<length;i++)
    {
        for(j=0;j<i;j++)
        {
            if(array[i]>array[j])
            {
                new temp=array[i];
                array[i]=array[j];
                array[j]=temp;
            }
        }
    }
Reply
#3

Sн o sн deben ser varias iteraciones?
Reply
#4

Otacon, como se usa esa funciуn?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)