...
Code Block | ||||
---|---|---|---|---|
| ||||
static const size_t COLS = 5; static const size_t ROWS = 7; static int matrix[ROWS][COLS]; void init_matrix(int x) { for (size_t i = 0; i !=< COLS; i++i) { for (size_t j = 0; j !=< ROWS; j++j) { matrix[i][j] = x; } } } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
static const size_t COLS = 5; static const size_t ROWS = 7; static int matrix[ROWS][COLS]; void init_matrix(int x) { for (size_t i = 0; i !=< ROWS; i++i) { for (size_t j = 0; j !=< COLS; j++j) { matrix[i][j] = x; } } } |
...