Hi
> The only concern I have with the vector approach is that I need to do
extra
> work to associate the two components. Using the map gets me there with
only
> a few lines of code.
In that case write a fucntion or a method with the code in it.
> Regarding sorting the map....I was under the
> impression that the first element of any given pair was the key and that
the
> keys were sorted as I inserted them, but when I iterate through the map,
my
> keys are still in the inserted order and not sorted order. Did I miss
> something?
Are they not in key order?
Do you have the Standard Template Library by Nico Josuttis? If you haven't,
you should get it, if you have look up maps in it. I think you can supply a
sorting Predicate. I don't have the book here so I can't look it up for you.
Regards
Paul
Paul Grenyer
Email: [EMAIL PROTECTED]
Web: www.paulgrenyer.co.uk
What do you mean you've never heard of Karnataka?
