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
Here is a simple one I made:
#include #include using namespace std; int barl = 20; int main() { system("color 0e"); cout << "["; for (int i = 0; i < barl; i++) { Sleep(100); cout << ":"; } cout << "]"; }