[moderated group removed]
In message <7cdc09ec.0403301912.a7b744@posting.google.com>, Mike Jeffers
<mikael888@lycos.com> writes
Hi all,
I'm pretty new to programming and need help to do a nested sort on a
linked list.
Basically I'm sorting a list of structures with names, classroom
number and floor level. I can sort in scending order any of the 3
values but I need to do a nested sort first with floor, followed by
classroom number and finally name.
Please tell me where I have gone wrong with this.
Failing to use std::list, std::sort() (and maybe std::stable_sort() ) ?
Standard C++ is more than just a language; it includes a library which
means you don't have to go through the (as you have discovered)
error-prone process of reinventing your own linked lists and sort
algorithms.
--
Richard Herring
.
|