Re: Need help with Quicksort
Are you using a debugger to debug your code?
Regards,
Paul McKenzie
Re: Need help with Quicksort
In addition, provide a main() program that shows the calls to these functions and parameters passed that duplicate the problem. Secondly,
Can you guarantee that i+1 isn't outside the boundaries of the array?
Regards,
Paul McKenzie
Re: Need help with Quicksort
I am using Visual Studio and its built in debugger.
I'm not necessarily working on the main portion of the program, I'm just responsible for writing the sorting algorithm using quicksort, and I'm given the listed things. And yes, I know that i+1 isn't outside the boundaries of the array.
Re: Need help with Quicksort
I'm presuming this is a homework problem, yes? Because in the real world, most developers would just call std::sort() and be done with it. (Or qsort() if they're using C.)
It would help us to debug the problem if you could provide a trivial main() function which calls Quick_Sort and demonstrates the problem.