summaryrefslogtreecommitdiffstats
path: root/c++/examples/writedata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples/writedata.cpp')
-rw-r--r--c++/examples/writedata.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/c++/examples/writedata.cpp b/c++/examples/writedata.cpp
index 89cf0b9..388939d 100644
--- a/c++/examples/writedata.cpp
+++ b/c++/examples/writedata.cpp
@@ -21,23 +21,27 @@
* file is closed. Program reopens the file and reads and displays the result.
*/
-#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( "Select.h5" );
const string DATASET_NAME( "Matrix in file" );
const int MSPACE1_RANK = 1; // Rank of the first dataset in memory