title: print to output at specific location on line in c++
body: <p>I am trying to print to a uniform position in a line after printing out a header.  here's an example:</p>
  
  <pre><code>PHRASE                 TYPE
  "hello there"       =&gt; greeting
  "yo"                =&gt; greeting
  "where are you?"    =&gt; question
  "It's 3:00"         =&gt; statement
  "Wow!"              =&gt; exclamation
  </code></pre>
  
  <p>Assume each of these are stored in a <code>std::map&lt;string, string&gt;</code>, where key = phrase and value = type.   My issue is that simply using tabs is dependent on the console or text editor that I view the output in.  If the tab width is too small I won't know for sure where it will be printed.  I have tried using <code>setw</code>, but that only prints the separator ("=>") a fixed distance from the end of the phrase.  Is there a simple way to do this?</p>
  
  <p><strong>NOTE</strong> Assume for now that we just always know that the phrase will not be longer than, say, 16 characters.  We don't need to account for what to do if it is.</p>