title: How do I set cursor position to beginning of line in C++?
body: <p>So I'm trying to make part of a code where it writes something, then overwrites it.  Like this:</p>
  
  <pre><code>10 seconds have passed
  11 seconds have passed
  12 seconds have passed
  </code></pre>
  
  <p>without using a new line to print it.  So I don't want to use something like this:</p>
  
  <pre><code>std::cout&lt;&lt;"10 seconds have passed\n"
  std::cout&lt;&lt;"11 seconds have passed\n"
  </code></pre>
  
  <p>How do I do this?  I'm running Kubuntu Linux</p>