diff options
Diffstat (limited to 'c++/examples/readdata.cpp')
-rw-r--r-- | c++/examples/readdata.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/c++/examples/readdata.cpp b/c++/examples/readdata.cpp index 776c322..8f00e33 100644 --- a/c++/examples/readdata.cpp +++ b/c++/examples/readdata.cpp @@ -18,23 +18,27 @@ // information about the dataset in the SDS.h5 file is obtained. // -#include <string> - #ifdef OLD_HEADER_FILENAME #include <iostream.h> #else #include <iostream> #endif -#include "H5Cpp.h" +#include <string> #ifndef H5_NO_NAMESPACE -using namespace H5; #ifndef H5_NO_STD + using std::string; using std::cout; using std::endl; #endif // H5_NO_STD #endif +#include "H5Cpp.h" + +#ifndef H5_NO_NAMESPACE +using namespace H5; +#endif + const string FILE_NAME( "SDS.h5" ); const string DATASET_NAME( "IntArray" ); const int NX_SUB = 3; // hyperslab dimensions |