N
Noixe
Hello,
I'm italian then sorry for my bad english:
In this source
#include <iostream>
#include <map>
#include <string>
map <string, map <string, int> > PG;
int main() {
PG.insert (map <string, map<string, int> >::value_type ("pippo",
map<string, int>::value_type ("pluto", 6))); // Error
std::cout << PG["pippo"].first << std::endl; // Error
return 0;
}
How can I insert a key and value in a internal map?
How I get the key and value of internal map?
Thanks
I'm italian then sorry for my bad english:
In this source
#include <iostream>
#include <map>
#include <string>
map <string, map <string, int> > PG;
int main() {
PG.insert (map <string, map<string, int> >::value_type ("pippo",
map<string, int>::value_type ("pluto", 6))); // Error
std::cout << PG["pippo"].first << std::endl; // Error
return 0;
}
How can I insert a key and value in a internal map?
How I get the key and value of internal map?
Thanks