title: How to create new vector in each iteration?
body: <p>When I run the code below, in my <code>trainingVector</code> I get:</p>
  
  <pre><code>{(10,0),(10,0),(10,0)...}
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>{(0,0),(1,0),(2,0)...}
  </code></pre>
  
  <p>How do i make this work correctly?     </p>
  
  <pre><code>vector&lt; vector&lt; double &gt; * &gt; trainingVector; 
  for(int i=0;i&lt;10;i++){     
      vector&lt;double&gt; ok (2,0);
      ok[0]=i;
      trainingVector.push_back(&amp;ok)
  }
  </code></pre>