Search:

Type: Posts; User: Trckst3

Search: Search took 0.01 seconds.

  1. Thread: Bubble sort

    by Trckst3
    Replies
    3
    Views
    1,182

    Bubble sort

    Hey guys i'm trying to get the bubble sort to work in my if(choice==2) statement but it's not working right at all. Any ideas?
    Thanks!


    #include <iostream>
    #include <iomanip>
    #include...
  2. Replies
    9
    Views
    1,879

    I do see that I never actually gave 'n' a value...

    I do see that I never actually gave 'n' a value anywhere but I'm not sure what it's meant to be in the bubble loop we just covered those in class and I came away very confused. I'm assuming that it's...
  3. Replies
    9
    Views
    1,879

    Ok i closed off my first if statement so that it...

    Ok i closed off my first if statement so that it wouldn't have 1 and 2 together. I recompiled and ran it and it does the same thing and tells me that my 'n' is uninitialized. So do i still have the...
  4. Replies
    9
    Views
    1,879

    I'll take a stab at it, I'm new at this so don't...

    I'll take a stab at it, I'm new at this so don't laugh, but to me it looks like my if(choice==2) is actually within if(choice==1) and thus the compiler doesn't know what i'm wanting it do....?
  5. Replies
    9
    Views
    1,879

    I'm not sure I understand. Do you mean I need...

    I'm not sure I understand. Do you mean I need another for loop before my cout statement?
  6. Replies
    9
    Views
    1,879

    Don't Understand

    Hi guys I'm trying to get this program to sort my array in the second option and i think i have the bubble sort written correctly but it doesn't do anything. Any ideas


    //This program takes 20...
Results 1 to 6 of 6