Talk About Network

Google





Programming > C - C++ Learning > Re: Need help u...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 4059 of 4400
Post > Topic >>

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.
 




 6 Posts in Topic:
Need help using an orderedInsert help for alphabetizing entries.
jawdoc <drbrooks@[EMAI  2008-03-08 15:55:10 
Re: Need help using an orderedInsert help for alphabetizing entr
Ian Collins <ian-news@  2008-03-09 16:53:43 
Re: Need help using an orderedInsert help for alphabetizing entr
Francis Glassborow <fr  2008-03-09 11:25:21 
Re: Need help using an orderedInsert help for alphabetizing entr
"Jim Langston"   2008-03-09 12:33:34 
Re: Need help using an orderedInsert help for alphabetizing entr
Francis Glassborow <fr  2008-03-11 14:01:46 
Re: Need help using an orderedInsert help for alphabetizing entr
"Daniel T." <  2008-03-09 16:07:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 11:56:09 PST 2009.