title: How to display a progress indicator in pure C/C++ (cout/printf)?
body: <p>I'm writing a console program in C++ to download a large file. I know the file size, and I start a work thread to download it. I want to show a progress indicator to make it look cooler.</p>
  <p>How can I display different strings at different times, but at the same position, in cout or printf?</p>