title: How to add string to vector of string in C++
body: <p>I have:</p>
  
  <pre><code>vector&lt;string&gt; *history;
  history = new vector&lt;string&gt;[300];
  </code></pre>
  
  <p>where history should contain several strings (up to 300).</p>
  
  <p>Then I do in order to add a string:</p>
  
  <pre><code>std::stringstream sstm;
  sstm &lt;&lt; frameProc &lt;&lt; " ";
  string result = sstm.str();
  history[xyz]= result;  //This line does not work
  </code></pre>
  
  <p>But that does not work. How should I do this?</p>