CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rocketjumper

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    6,323

    Re: Sorting problems

    I mean:


    for(j=0;j<len-i-1;j++)
  2. Replies
    5
    Views
    6,323

    Re: Sorting problems

    Thanks Paul! That makes sense now! Just modify the inner for loop as


    for(j=0;j<len-i;j++)

    will solve the problem! Thanks for explaining this to me
  3. Replies
    5
    Views
    6,323

    Re: Sorting problems

    Thanks Kurt! Can you be more specific?
  4. Replies
    5
    Views
    6,323

    Sorting problems

    HI I just started learning c++. Below is the bubble_sorting program I wrote. Complied no error under eclipse(Ubuntu). But the result is not right.

    What is happening is, no matter what input...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured