8 typedef map<string, char*> dict;
11 dict::iterator im = tb1.find("00380010");
12 tb1["00100010"] = "Patient Name";
13 tb1["7fe00010"] = "Pixel Data";
14 tb1["50000010"] = "Number of points";
15 tb1["00380010"] = "Admission ID";
17 cout << "Traversal of dictionary (note the proper ordering on key)." << endl;
18 for ( dict::iterator im = tb1.begin(); im != tb1.end(); ++im )
19 cout << " \"" << im->first << "\" = " << im->second << endl;
20 cout << "End of dictionary." << endl;
22 cout << "Find request on key 00380010" << endl;
23 im = tb1.find("00380010");
24 cout << " \"" << im->first << "\" = " << im->second << endl;
27 std::cout.setf(std::ios::hex);
28 std::cout << i << endl;
29 std::cout.setf(std::ios::dec);
30 std::cout << i << endl;
33 //http://www.developer.com/net/cplus/article.php/10919_2119781_3
35 // domage que ca ne marche pas ...