title: Displaying tables in C++ console window
body: <pre><code>cout&lt;&lt;"  Name\t"
      &lt;&lt;"Cat\t"
      &lt;&lt;"Barcode\t"
      &lt;&lt;"Price\t"
      &lt;&lt;"Manufa\t"
      &lt;&lt;"Stock\t"
      &lt;&lt;"Sold\t"
      &lt;&lt;"ExDate\t "
      &lt;&lt;"Disc"&lt;&lt;endl;
  for (unsigned int i=0; i &lt; _storage.size(); i++)
  {
      cout &lt;&lt;i &lt;&lt;":";
      _storage[i]-&gt;showData();
      cout&lt;&lt;endl;
  }
  </code></pre>
  
  <p>I am trying to display  data in a aligned manner.I am currently using the `t` character to do this but this will result in a misalignment if the data in one of the variable is too long.</p>
  
  <p>How do I properly display data in a table form in C++?</p>