I have a linked list containing the following data
struct node
{
string name;
int hours;
node* next;
}
I have all function I've made so far working, adding indiviual node, deleting node, printing data in nodes, Ive made the program to read from a file upon execution to create the data in the nodes I use the method of building a list backward to load the new nodes into the list
Now I have to sort the nodes in descending order based on the hours contained in each object, any suggestions, thanks