# Thread: help me with code

2. ## Re: Sorting an array of structure

Where's your code? If you are having troubles then that would imply that you've actually done something? What have you done? Have you stepped through your code line by line? If so, exactly where does what you actually see differ from what you expect to see?

4. ## Re: Sorting an array of structure

I'm stuck there. Dunno what to do from here.
And to that person that posted the link. I don't speak Spanish, and I can't get it to convert it to English.

5. ## Re: Sorting an array of structure

Most people here would be happy to help if you post the code here in the forum.
Most people here would not be so happy to help if you just post a pastebin link

6. ## Re: Sorting an array of structure

I don't see why posting it on pastebin makes a difference. Pastebin is well known. Anyway here

8. ## Re: Sorting an array of structure

to download the archive choose Save As and save it as a zip file

9. ## Re: Sorting an array of structure

Thanks a lot Paul. I will take my time in learning the quick sort algorithm. Practice it by hand till I'm solid. Then referring back to your code to understand what you did. Thanks it worked though.

10. ## Re: Sorting an array of structure

Why can't you use array.sort? If you use a custom comparator, you will get the qsort algorithm doing the sorting with your comparator, so is this an exercise in learning the qsort algorithm itself (in which case there is a video about it, which probably won't help at all, but which is entertaining)?

11. ## Re: Sorting an array of structure

you can fasttrack your quicksort education, by putting some Debug.Print statements in my example to view the array elements at every stage of the sorting, which will help you to understand how quicksort works

12. ## Re: Sorting an array of structure

My link is pretty good for visualizing how quick sort works.

13. ## Re: Sorting an array of structure

Originally Posted by Shaggy Hiker
Why can't you use array.sort? If you use a custom comparator, you will get the qsort algorithm doing the sorting with your comparator, so is this an exercise in learning the qsort algorithm itself (in which case there is a video about it, which probably won't help at all, but which is entertaining)?

haha that video is classic. Thanks, I already understand quicksort but i just forgot. aint done it in a while.

Originally Posted by Shaggy Hiker
My link is pretty good for visualizing how quick sort works.
Originally Posted by .paul.
you can fasttrack your quicksort education, by putting some Debug.Print statements in my example to view the array elements at every stage of the sorting, which will help you to understand how quicksort works
Will do that. Thanks again you're of great help.

14. ## Re: Sorting an array of structure

Hello.
First of all it is Italian and not Spanish!
msdn exists in many languages, just search,
the code example helps solve the problem and grasp the concept.
I always try before asking for help in the help of Visual Studio which in the fundamental aspects is quite explanatory.
Look at Quicksort Array of Structure.zip modified with the use of Array.Sort
This is partially translated by Google.
Merry Christmas

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•