]> Creatis software - gdcm.git/blobdiff - Testing/TestHash.cxx
Fix: Python/vtk build again
[gdcm.git] / Testing / TestHash.cxx
index af7ced2357c7191dde2cdcf6053dac0332139cad..230550ee1fd465d52afecab8565894bceda0b2d0 100644 (file)
@@ -3,7 +3,7 @@
 #include <iostream>
 #include <stdio.h>
 
-int main() {
+int hashtest( int, char * [] ) {
 
   typedef std::map<std::string, char*> dict;
   
@@ -15,7 +15,7 @@ int main() {
   tb1["00380010"] = "Admission ID";
 
        std::cout << "Traversal of dictionary (note the proper ordering on key)." << std::endl;
-       for ( dict::iterator im = tb1.begin(); im != tb1.end(); ++im )
+       for ( im = tb1.begin(); im != tb1.end(); ++im )
                std::cout << "   \"" << im->first << "\" = " << im->second << std::endl;
        std::cout << "End of dictionary." << std::endl;
 
@@ -32,5 +32,7 @@ int main() {
        // Voir :
        //http://www.developer.com/net/cplus/article.php/10919_2119781_3
        //
-       // domage que ca ne marche pas ...
+       // dommage que ca ne marche pas ...
+
+  return 0;
 }