c++ vector to comma delimitated string?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5287329/c-vector-to-csv-by-adding-comma-after-each-element">C++ Vector to CSV by adding Comma after each element</a>  </p>
</blockquote>



<p>I have a vector:</p>

<pre><code>std::vector&lt;std::pair&lt;int, QString&gt; &gt; recordingArray;
</code></pre>

<p>I need to convert it to a comma delimitated string so I can store it in a database (is there a better format for the data - it all needs to go in one field)</p>

<p>How can I convert it to a comma delimitated string?</p>

<p>And then later, convert it back?</p>
