Search:

Type: Posts; User: PiCoMiKe

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,470

    I can't figure out where it would help sth like...

    I can't figure out where it would help sth like that.
    Can u be more specific?

    I mean the 1st code example works great as a typical bubblesort, but the 2nd one that tries to behave circular...
  2. Replies
    2
    Views
    1,470

    Circular bubblesort

    Hello!!



    void bubblesort(int n, double *x)
    { int i, j;
    for (i=1 ; i<=n-1 ; i++)
    for (j=n-1 ; j>=i ; j--)
    if (x[j-1] > x[j])
    swapd(&x[j-1], &x[j]);
Results 1 to 2 of 2