title: Getting Value from particular index in 2d vector in c++
body: <p>I have made a 2d vector using : </p>
  
  <pre><code> std::vector&lt;std::vector&lt;int&gt; *&gt; hp;
  </code></pre>
  
  <p>I want to initialise hp  vector and get the data from particular index for the same.</p>
  
  <pre><code>for eg,
  Getting the values from hp[2][2];
  </code></pre>
  
  <p>Please do help</p>