In one hour, it's my final exam. To be ready, I would greatly appreciate if someone could show me an example of the bubble sort to sort an array that contain a structure. If for example, I have a struct that contain a number (int), a name and a phone number, how do I use bubble sort to sort all the numbers, with the names and the phones numbers following.
(don't worry with my noob posts, it's surely my last)
The internet is full of examples of bubble-sort.
If you understand bubble-sort, making it sort array of structs simply means that you don't compare simple types but a data member of the struct.