std::map<std::string, int> m;

   m["jan"] = 1;
   m["feb"] = 2;
   m["mar"] = 3;
   m["may"] = 4;

   std::map<std::string, int>::const_iterator i;

   for (i = m.begin(); i != m.end(); ++i)
   {  std::cout << "key:" << i->first << std::endl;
   }

-- MattWalsh - 01 May 2009

Topic revision: r1 - 01 May 2009 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback