c++ - How to use a "vector of vector"? -
I have already searched the web for this but I have not found satisfactory results.
I want to create something like
vector & lt; Of vector & lt; Integer * & gt; & Gt; Test_vector;
How do I fill this vector vector? How to use it? Maybe somebody know some good tutorials on the web?
Merciful Mikey
Just remember that test_vector
vector & lt; Int * & gt;
. You will fill the test_vector
by filling each element vector.
You can access it as any multi-dimensional array. See:
int * p = test_vector [0] [0];
or:
int * p = test_vector.at (0) .at (0);
Comments
Post a Comment