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?
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...