Bubble Sort

We're supposed to create a program with a function bubble that receives the array num of 30 integers and sorts the values in the array, and returns the number of exchanges made to sort the array values.We need to declare the array as aNum in main with pre-defined values,use another function to display the unsorted values and display the unsorted and sorted array values.

I have no idea how to use bubble sort. How can I do this?
Sorry but I can't open the site because it was blocked from this comp. Would you mind elaborating it please?
Don't you have a book or something that would explain it to you? Or online access to do a search? Probably faster than waiting for people to explain it...
Topic archived. No new replies allowed.