Hello. I had written a program where 10 numbers are infiled and placed on a linked list. They are then sorted using selection sort. I sorted the values not the pointers. Now I have to write the exact same program but I need to sort the pointers not the values. I have never sorted pointers before so I was wondering if someone could give me a few tips and get me going in the right direction. Here is the first program I wrote that sorted the values...
Is it that you don't want to swap values between nodes, but wan't to rearrange the order of nodes in the list instead? If so, then you should have methods that insert and remove node for a list. Furthermore, you have only one list now; one head. You could/should have temporary list(s) too.