# include<stdio.h>
# include<unistd.h>
int main()
{
char tar[102];
int i = 0;
tar[0] = 0;
const char *lable = "|/-\|";
while(i <= 100)
{
printf("[%-100s][%d%%][%c]\r",tar,i,lable[i%4]);
fflush(stdout);
tar[i] = '#';
i++;
tar[i] = 0;
usleep(100000);
}
printf("\n");
return 0;
}