X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestHash.cxx;h=230550ee1fd465d52afecab8565894bceda0b2d0;hb=b7518dc8f2304a666cafac4b1b18ac7d81983555;hp=af7ced2357c7191dde2cdcf6053dac0332139cad;hpb=f97517fa5d3facd37a2a8e1b35a10ef2286f7770;p=gdcm.git diff --git a/Testing/TestHash.cxx b/Testing/TestHash.cxx index af7ced23..230550ee 100644 --- a/Testing/TestHash.cxx +++ b/Testing/TestHash.cxx @@ -3,7 +3,7 @@ #include #include -int main() { +int hashtest( int, char * [] ) { typedef std::map 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; }