title: C++ How to use the same line to print text after delete previous?
body: <p>I would like to print a line, than delete it, than print another one in the same line. I would like this because I do not to loose or go to much back for getting the information that was printed before the loop where I print things like <code>Processing file &lt;X&gt;</code>. I know that it is possible, because I have seen stuffs like that, but I did not found the way to do it.</p>
  
  <p>This is my code:</p>
  
  <pre><code>std::cout &lt;&lt; "Print important information" &lt;&lt; std::endl;
  for (int i = 0; i &lt; filesVec.size(); i++)
  {
    std::cout &lt;&lt; "Processing file " &lt;&lt; i &lt;&lt; std::endl;
    // processing file
  }
  std::cout &lt;&lt; "Print another important information" &lt;&lt; std::endl;
  </code></pre>
  
  <p>This prints me a lot of lines between the first and second important informations. I would like to print all the <code>processing file X</code> info to see that it is not getting stuck on some file. At the end I need the important info, so Is there a statement to do what I want?</p>