How can I erase a printed output line?
<p>What code would I have to add, replacing the comment, to print 1 &amp; 3 only?</p>

<pre><code>main()
{
   cout&lt;&lt;" 1 "&lt;&lt;endl;
   cout&lt;&lt;"  2 "&lt;&lt;endl;
   /* Code here to remove above "  2" line on output screen  */
   cout&lt;&lt;" 3 "&lt;&lt;endl;
}

expected output:
  1
  3
</code></pre>

<p>If you know the answer, please let me know.</p>
