Click to See Complete Forum and Search --> : Managing a string list


Alan Benett
May 3rd, 1999, 04:10 AM
Hi!

I want to create some kind of dictionary within my programm.
It should have the following features:

- Each Word has a certain integer value
- Words can have the same values
- It must be sortable and searchable by values and by words

Well, i don't know how to set up such a word-list. It seems that a CMap can't do sorting by its values or keys?! And it allows only one value per key.
( CMap <int, int, CStringList, CStringList&> ) seems to be bad for searching a single word. The CArray and CList-classes, however, might be too slow...

Has anybody out there any helpful hint, please ???
Best regards.
Alan.