iterating map code example
Example 1: iterate map
Map map = ...
for (Map.Entry entry : map.entrySet()) {
System.out.println(entry.getKey() + "/" + entry.getValue());
}
Example 2: iterar en map
//traditional way (long)
for(map::iterator it=m.begin(); it!=m.end(); ++it)
if(it->second)cout<first<<" ";
//easy way(short) just works with c++11 or later versions
for(auto &x:m)
if(x.second)cout<