Re: How to use associative arrays in Ada 2005?



On Thu, 2006-11-23 at 11:27 -0800, snoopysalive wrote:

The statement "Ages.Insert("family name",Insert("name",23));" doesn't
work.

Think about what Insert returns, if anything.
Programs written in Ada are less frequently filled with
abbreviations :-)

So, how is it possible to do something like this in C++:
"...
map<string, map<string,int>> ages;
ages["family name"]["name"] = 23;
..."


.