I need to sort a list with a bunch of numbers in separate columns. How would you sort a linked list with a bunch of numbers in separate columns. Anyone have any good examples to share or point me in the right direction. Please help - SEOT
SEOT 0 Newbie Poster
Recommended Answers
Jump to PostThe following code will sort a list of columns of numbers. The standard (STL) list class has a sort function, and you just have to make sure the list items have an operator<() assigned. Alternately you can write a compare function outside of the ItemRow class and feed it explicitly …
Jump to PostWill this work with a Linked List?
The STL list I showed the example for is a linked list. So I guess the answer is: Yes.
All 6 Replies
SEOT 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
dougy83 74 Posting Whiz in Training
SEOT 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
dougy83 74 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.