构建c++二维vector int i,j; vector<vector<int>> array(5); for (i = 0; i < array.size(); i++) array[i].resize(3);