Loading...

Um can any one help… - QuestionCove
OpenStudy (hba):

Um can any one help me with bubble sort in C#?

4 years ago
OpenStudy (anonymous):

Have you written any code yet?

4 years ago
OpenStudy (anonymous):

Here is a swap function that you can probably use: static void swap(ref int a, ref int b) { int temp = a; a = b; b = temp; } I wrote a sorting function in class, but I don't remember exactly how it worked. It basically checked between two integers in a list, and if a was higher than b, it would swap the two, then it would increase the index by 1 and check the one that it just swapped and see if it was bigger than the next one in the list. Then it would repeat that the length of the list times two.

4 years ago
OpenStudy (anonymous):

internet is full of sorting algorithms for various languages :D

4 years ago
Similar Questions: