Re: Nested sort on a linked list



 DEVELOP > c-Plus-Plus > Re: Nested sort on a linked list

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "Richard Herring"
Date: 01 Apr 2004 04:30:23 AM
Object: Re: Nested sort on a linked list
[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
.

 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER