Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: code tweaks in matrix NCCE/CS

...

Code Block
bgColor#ffcccc
langc
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
bgColor#ccccff
langc
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;
    }
  }
}

...