X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestHash.cxx;h=19112e09322610cf2fb86514795d21eb15499408;hb=adc8d5da8f5fd92da1cd74d2f6b2efaac14d8889;hp=4e278e5b956312a939d0067e0b0506f5f06a6a27;hpb=95e6a4bdf85e20cc52a9a21490c1ebcb94b10312;p=gdcm.git diff --git a/Testing/TestHash.cxx b/Testing/TestHash.cxx index 4e278e5b..19112e09 100644 --- a/Testing/TestHash.cxx +++ b/Testing/TestHash.cxx @@ -3,9 +3,9 @@ #include #include -int main() -{ - typedef map dict; +int main() { + + typedef std::map dict; dict tb1; dict::iterator im = tb1.find("00380010"); @@ -14,23 +14,25 @@ int main() tb1["50000010"] = "Number of points"; tb1["00380010"] = "Admission ID"; - cout << "Traversal of dictionary (note the proper ordering on key)." << endl; - for ( dict::iterator im = tb1.begin(); im != tb1.end(); ++im ) - cout << " \"" << im->first << "\" = " << im->second << endl; - cout << "End of dictionary." << endl; + std::cout << "Traversal of dictionary (note the proper ordering on key)." << std::endl; + for ( im = tb1.begin(); im != tb1.end(); ++im ) + std::cout << " \"" << im->first << "\" = " << im->second << std::endl; + std::cout << "End of dictionary." << std::endl; - cout << "Find request on key 00380010" << endl; + std::cout << "Find request on key 00380010" << std::endl; im = tb1.find("00380010"); - cout << " \"" << im->first << "\" = " << im->second << endl; + std::cout << " \"" << im->first << "\" = " << im->second << std::endl; int i = 0x0010; std::cout.setf(std::ios::hex); - std::cout << i << endl; + std::cout << i << std::endl; std::cout.setf(std::ios::dec); - std::cout << i << endl; + std::cout << i << std::endl; // Voir : //http://www.developer.com/net/cplus/article.php/10919_2119781_3 // // domage que ca ne marche pas ... + + return 0; }