Answers for "use of vector in c++"

C++
1

vector of vectors c++

vector<vector<int>> matrix(x, vector<int>(y));

This creates x vectors of size y, filled with 0's.
Posted by: Guest on May-06-2021
0

vector of vectors c++

vector<vector<data_type>> vec;
Posted by: Guest on May-06-2021

Browse Popular Code Answers by Language