X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FWriteRead.cxx;h=7e75baaeee21c00110375660d4e32b81a310145d;hb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;hp=fab3f75dac2851d9b6746cf1b8b8688186a6ebf3;hpb=978f699b97794e209f9d20e2a33a72404bda54ef;p=gdcm.git diff --git a/Example/WriteRead.cxx b/Example/WriteRead.cxx index fab3f75d..7e75baae 100644 --- a/Example/WriteRead.cxx +++ b/Example/WriteRead.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: WriteRead.cxx,v $ Language: C++ - Date: $Date: 2004/11/16 04:26:18 $ - Version: $Revision: 1.8 $ + Date: $Date: 2004/12/03 20:16:56 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,14 +15,14 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ +#include "gdcmHeader.h" +#include "gdcmFile.h" + #include -#include -#include "gdcm.h" int main(int argc, char* argv[]) { - std::string toto; - char zozo[200]; + std::string zozo; gdcm::Header* e1, *e2; gdcm::File * f1, *f2; @@ -36,7 +36,7 @@ int main(int argc, char* argv[]) return 1; } - toto = argv[1]; + std::string toto = argv[1]; // --------------------- we read the input image @@ -55,7 +55,7 @@ int main(int argc, char* argv[]) // --------------------- we write it as an Explicit VR DICOM file - sprintf(zozo, "temp.XDCM" ); + zozo = "temp.XDCM"; std::cout << "WriteDCM Explicit VR" << std::endl; f1->WriteDcmExplVR(zozo);