7 typedef map<string, char*> dict;
10 current["00100010"] = "Patient Name";
11 current["7fe00010"] = "Pixel Data";
12 current["50000010"] = "Number of points";
13 current["00380010"] = "Admission ID";
15 cout << "Traversal of dictionary (note the proper ordering on key)." << endl;
16 for ( dict::iterator im = current.begin(); im != current.end(); ++im )
17 cout << " \"" << im->first << "\" = " << im->second << endl;
18 cout << "End of dictionary." << endl;
20 cout << "Find request on key 00380010" << endl;
21 dict::iterator im = current.find("00380010");
22 cout << " \"" << im->first << "\" = " << im->second << endl;