Show map_test.cc syntax highlighted
#include <map>
#include <iostream>
#include <string>
using namespace std;
int main()
{
map<string, string> m;
map<string, string>::iterator i;
m["abc"] = "hello";
m["ab1"] = "there";
m["a4c"] = "dude";
for(i=m.begin(); i!= m.end(); i++) {
cout << "Key: " << i->first << endl;
cout << "Value: " << i->second << endl;
}
return 0;
}
See more files for this project here