|
|
I'm very very new to maps and am really just trying to hash them out by myself. |
|
|
I'm very very new to maps and am really just trying to hash them out by myself. :) |
#include <iostream> #include <map> int main() { std::map<std::string, int> map; map["zero"] = 0; map["one"] = 1; for(std::map<std::string,int>::iterator it = map.begin(); it != map.end(); ++it) { std::cout << it->first << "\n"; } } |