First page
Back
Continue
Last page
Overview
Graphics
Hashes in C++
#include <string>
#include <map>
...
// Hard way to set up.
std::map<std::string, int> m2;
m2["Fred"] = 5;
m2["Bob"] = 3;
// Easy to copy.
std::map<std::string, int> m3 = m2;
Notes: