#include#include #define PROGRESS_LEN 50 void show_progress(int progress) { int i = 0; int progress_finsh = 0; progress_finsh = progress * PROGRESS_LEN / 100; printf("rProgress : |"); for (i = 0; i < PROGRESS_LEN; i++) { if (i < progress_finsh) { printf("%c", '#'); } else { printf("%c", '-'); } } printf("| %d %%", progress); } int main(int argc, char *argv[]) { int i = 0; for (i = 0; i <= 100; i++) { Sleep(50); show_progress(i); } return 0; }



