I have a linked list. Each node has 2 pieces of data (a name and a number) plus the pointer to the next node.
One of the pieces of data is an arbitrary number. I need to somehow create a function that can print out the names in the ascending order of their corresponding numbers.
for example if:
then my function should print out:Code:NODE 1: brad,5 NODE 2: joe, 7 NODE 3: ralph, 2
does anyone know how I might go about doing this, I'm new to link lists and this is confusing for me, I'm not asking for code just ideas.Code:ralph brad joe
Thank You



LinkBack URL
About LinkBacks


