summaryrefslogtreecommitdiffstats
path: root/c++/examples/create.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples/create.cpp')
-rw-r--r--c++/examples/create.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/c++/examples/create.cpp b/c++/examples/create.cpp
index 06d5d4d..3e93cb4 100644
--- a/c++/examples/create.cpp
+++ b/c++/examples/create.cpp
@@ -12,10 +12,10 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/*
+/*
* This example writes a dataset to a new HDF5 file.
*/
-
+
#include <string>
#ifdef OLD_HEADER_FILENAME
@@ -37,8 +37,8 @@ const int RANK = 2;
int main (void)
{
- /*
- * Data initialization.
+ /*
+ * Data initialization.
*/
int i, j;
int data[NX][NY]; // buffer for data to write
@@ -46,9 +46,9 @@ int main (void)
{
for (i = 0; i < NY; i++)
data[j][i] = i + j;
- }
+ }
/*
- * 0 1 2 3 4 5
+ * 0 1 2 3 4 5
* 1 2 3 4 5 6
* 2 3 4 5 6 7
* 3 4 5 6 7 8
@@ -73,12 +73,12 @@ int main (void)
/*
* Define the size of the array and create the data space for fixed
- * size dataset.
+ * size dataset.
*/
hsize_t dimsf[2]; // dataset dimensions
dimsf[0] = NX;
dimsf[1] = NY;
- DataSpace dataspace( RANK, dimsf );
+ DataSpace dataspace( RANK, dimsf );
/*
* Define datatype for the data in the file.
@@ -129,5 +129,5 @@ int main (void)
}
return 0; // successfully terminated
-}
+}