title: Formatting C++ console output
body: <p>I've been trying to format the output to the console for the longest time and nothing is really happening. I've been trying to use as much of <code>iomanip</code> as I can and the <code>ofstream&amp;</code> out functions.</p>
  
  <pre><code>void list::displayByName(ostream&amp; out) const
  {
      node *current_node  = headByName;
  
      // I have these outside the loop so I don't write it every time.
  
      out &lt;&lt; "Name\t\t" &lt;&lt; "\tLocation" &lt;&lt; "\tRating " &lt;&lt; "Acre" &lt;&lt; endl;
      out &lt;&lt; "----\t\t" &lt;&lt; "\t--------" &lt;&lt; "\t------ " &lt;&lt; "----" &lt;&lt; endl;
  
      while (current_node)
      {
          out &lt;&lt; current_node-&gt;item.getName() // Equivalent tabs don't work?
              &lt;&lt; current_node-&gt;item.getLocation()
              &lt;&lt; current_node-&gt;item.getAcres()
              &lt;&lt; current_node-&gt;item.getRating()
              &lt;&lt; endl;
  
          current_node = current_node-&gt;nextByName;
      }
  
      // The equivalent tabs do not work because I am writing names,
      // each of different length to the console. That explains why they
      // are not all evenly spaced apart.
  }
  </code></pre>
  
  <p>Is their anything that I can use to get it all properly aligned with each other?
  The functions that I'm calling are self-explanatory and all of different lengths, so that don't align very well with each other.</p>
  
  <p>I've tried just about everything in <code>iomanip</code>.</p>