📅  最后修改于: 2022-03-11 14:44:57.239000             🧑  作者: Mango
auto M = 4; // num of rows
auto N = 3; // num of cols in each row
auto default_value = 1; // default value of all int elements
std::vector> matrix(M, std::vector(N, default_value));