C++ 2D Vector with Examples – Vector of Vectors
It is a vector consisting of vectors. As the name suggests it is 2-Dimensional in nature and can help you solve problems. In this tutorial, you will learn how to work with 2d vectors in C++. How to Take Input in 2D Vector? #include <iostream> #include <vector> using namespace std; int main() { vector<vector<int>> allvect; …
