Vector inside a vector

Is is possible to have a vector inside a vector? If so could I see an example?
Lets say you have Vector A and Vector B. Vector B is inside Vector A. How could i access Vector B from A?
1
2
3
4
std::vector< std::vector<int> > vv;
vv.push_back(std::vector<int>());
vv[0].push_back(7);
std::cout << vv[0][0];
Are you asking for a vector of vectors? You could probably use a matrix.
I have to find to put seventeen vector in one with simple code. then push certain parts of the information into each vector.
Topic archived. No new replies allowed.