进度条
- progressbar.c
#include<stdio.h>
int main(void )
{
char bar[ 101 ] = {
" "};
int i =0;
for(i=0; i<101; i++)
{
char ch[] = {
"|/-\\"};
printf("\033[41;34m [%-100s]%d%%[%c] \033[0m \r",bar,i,ch[i%4]);