title: how to set column name to csv file - c++
body: <p>I am writing some string data to a .csv file using <code>ofstream</code> like </p>
  
  <pre><code>out &lt;&lt; string-A &lt;&lt; "," &lt;&lt;  string-B &lt;&lt; "\n" ;
  </code></pre>
  
  <p>But, I could not find a way to set the column name of the .csv file.</p>
  
  <p>I mean, I want to give column name of string-A to (say) Col-1 and string-B to (say) Col-2.</p>
  
  <p>How to do that in c++ (I don't want to use any libraries). I am working in windows environment.</p>
  
  <p>Edit: I want format like:</p>
  
  <pre><code>Col-1         col-2
  1              4
  2              5
  3              6
  4              7
  </code></pre>
  
  <p>Column names are headings not cell values ?</p>