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