Search:

Type: Posts; User: scrfix

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    4,331

    I ran in to some issues sorting them realizing...

    I ran in to some issues sorting them realizing that I was missing some of the numbers that were being passed through and it wasn't sorting all of the numbers so I made a correction to the function. ...
  2. Replies
    7
    Views
    4,331

    Thank you so much for input and helping with...

    Thank you so much for input and helping with that. I finally got it to print out in descending order. I am going to work on getting it in ascending order. I could not do exactly what you suggested...
  3. Replies
    7
    Views
    4,331

    I have tried that already. void sort(int...

    I have tried that already.


    void
    sort(int values[], int n)
    {
    // TODO: implement an O(n^2) sort
    for(int i=n-2;i>0;i--) {
    for(int j=0;j<i;j++) {
    ...
  4. Replies
    7
    Views
    4,331

    bubble sort algorithm - displaying content

    Hello,

    I am working on a bubble sort program and it is kicking my butt. I have been learning C for about 6 weeks now 1-2 times a week when I have the time away from work and family.

    One of the...
Results 1 to 4 of 4