Ask your own question, for FREE!
Computer Science 24 Online
OpenStudy (hba):

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

OpenStudy (anonymous):

Have you written any code yet?

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.

OpenStudy (anonymous):

internet is full of sorting algorithms for various languages :D

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!