/* * Aaron Weeden, Shodor, May 2014 */ #include const int N_ROWS = 3; const int N_COLS = 4; int flatten(int row, int col) { return row * N_COLS + col; } int main() { hid_t file_id, dataset_id, dataspace_id; hsize_t dims[2] = {N_ROWS, N_COLS}; int row, col, data[N_ROWS][N_COLS]; for (row=0; row