How do I make a pointer for a vector inside a vector?
<p>I have this currently:</p>

<pre><code>vector&lt;int&gt; *ptrvec1;
vector&lt;vector&lt;int&gt; &gt; *ptrvec2;
vector&lt;vector&lt;int&gt; &gt; vec;
ptrvec1 = ?????
ptrvec2 = &amp;vec;
</code></pre>

<p>and I want to associate the <code>ptrvec1</code> to the address of the vector inside <code>vec</code>.</p>

<p>The problem is that the exterior vec lenght is not constant, it depends of the user input</p>

<p>not 3 and 10 vectors. that's the vector lenght...</p>

<p>imagine you have the vector with adress 0, 1 and 2
each one of those adresses has another vector. I want to run the pointer in each vector inside the 0, 1 and 2 adress</p>

<pre><code>0,    0, 1, 2
1,    0, 1, 2
2,    0, 1, 2
</code></pre>
