Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linked list

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do I create a dynamic initial linked list that puts names in alphabetic order.
 
Well, if you are using MFC, you can do it with a CStringList. Impliment an Insertion Sort via the CStringList member functions of InsertBefore and InsertAfter. I think you may need a special case if the list is empty.

matt
 
I think std::list<std::string> may be useful to you too.
Refer to <list>.

Cheers,
BatVanko ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top