#include "matrix.h" #define NROWS 4 #define NCOLS 5 int main(int argc, char *argv[]) { Matrix mat(NROWS, NCOLS); for (int i = 0; i < NROWS; i++) for(int j = 0; j < NCOLS; j++) mat(i, j) = 1 + j + i * NCOLS; cout << mat; return 0; }