]> Creatis software - gdcm.git/blobdiff - Testing/TestHash.cxx
All the 'accesors with euristics' move to the end of the file
[gdcm.git] / Testing / TestHash.cxx
index 56cbdfcdfe16d6281bc92e157db99d6cc2188406..b02905f970bfe89b0c1bc38c73d533335fc407cc 100644 (file)
@@ -1,9 +1,10 @@
 #include <map>
 #include <string>
 #include <iostream>
+#include <stdio.h>
+
+int main() {
 
-int main()
-{
   typedef map<string, char*> dict;
   
   dict tb1;
@@ -21,4 +22,15 @@ int main()
        cout << "Find request on key 00380010" << endl;
        im = tb1.find("00380010");
        cout << "   \"" << im->first << "\" = " << im->second << endl;
+       
+       int i = 0x0010;
+       std::cout.setf(std::ios::hex);
+       std::cout << i << endl;
+       std::cout.setf(std::ios::dec);
+       std::cout << i << endl; 
+       
+       // Voir :
+       //http://www.developer.com/net/cplus/article.php/10919_2119781_3
+       //
+       // domage que ca ne marche pas ...
 }