title: How to initialize 2d vector using constructor in c++?
body: <p>I know how to initialize 1d vector like this</p>
  
  <pre><code>int myints[] = {16,2,77,29};
  std::vector&lt;int&gt; fifth(myints, myints + sizeof(myints) / sizeof(int));
  </code></pre>
  
  <p>suppose I have 2d data.</p>
  
  <pre><code>float yy[][2] = {{20.0, 20.0}, {80.0, 80.0}, {20.0, 80.0}, {80.0, 20.0}};
  </code></pre>
  
  <p>How can I initialize a 2d vector ?</p>