📜  创建向量的向量 c++ 代码示例

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

代码示例1
typedef std::vector > Matrix;

Matrix matrix = { {0.1,1.1,.2},
                 {.4,.5,.6}, 
                 {.8,.9,.10}
                };
// Just initilization:
int rows = 3;
int cols = 3;
Matrix m3(rows, std::vector(cols) );