Re: Need help using an orderedInsert help for alphabetizing entries.
by Francis Glassborow <francis.glassborow@[EMAIL PROTECTED]
>
Mar 11, 2008 at 02:01 PM
Jim Langston wrote:
> Francis Glassborow wrote:
>> jawdoc wrote:
>>> I am working on alphabetizing entries in my linked list and am very
>>> confused on how to do this. What I'm trying to do is to go through
>>> the list and order them accordingly. The struct consists of last
>>> name, first name, and some other stuff. I will provide the full code
>>> that is working but will only add to the top of the list but won't
>>> alphabetize it.
>>>
>> Why are you not using a Standard container? std::set or possibly
>> std::multiset seem the right one for your requirement but others such
>> as std::map with the name being the key are also contenders.
>
> You didn't read the comments in the code.
>
> Course : CSCI 1063 -- Programming II
> Description: Airline reservations program ... I will given them
> parts of this and they will have to finish it.
> Refer to the menu (or the writeup) for information
> about what exactly this program is supposed to do.
>
> It's homework.
Actually I did but was confused as to who the OP was (a student or an
instructor preparing a question.). If it was a student then the code
provided for amendment justifies a complete rewrite by the student :) If
it was an instructor then he should spend some money learning to write
good C++ for his students to work on.