How to display a progress indicator in pure C/C++ (cout/printf)?

后端 未结 8 1369
夕颜
夕颜 2020-12-12 11:10

I\'m writing a console program in C++ to download a large file. I have known the file size, and I start a work thread to download. I want to show a progress indicator to mak

8条回答
  •  -上瘾入骨i
    2020-12-12 11:35

    You can use a "carriage return" (\r) without a line-feed (\n), and hope your console does the right thing.

提交回复
热议问题