📜  初始化整数的二维向量 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:57.239000             🧑  作者: Mango

代码示例1
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));