The progress bar is the computer in the processing of tasks, real-time, in the form of pictures to show the speed of processing tasks, completion, the amount of remaining unfinished tasks, and may need to process time, usually in a rectangular bar display.
#include <stdio.h>
#include <stdlib.h>
void ProgressBar ()
{
Char buffer[21]={0};
int count=0;
int i=5;
while (COUNT!=20)
{
i=5;
while (i--)
buffer[count++]= ' # ';
printf ("%-20s[%d%][100%]\n", BUFFER,COUNT*100/20);
Sleep (1);//usleep (1000)
System ("clear");//fflush (stdout);
}
}
int main ()
{
ProgressBar ();
return 0;
}
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/6E/wKioL1b_tv6z_n6UAABOr06hywk584.png "title=" QQ picture 20160402200657.png "alt=" Wkiol1b_tv6z_n6uaabor06hywk584.png "/>
This article is from the "Small Stop" blog, please be sure to keep this source http://10541556.blog.51cto.com/10531556/1759616
Linux Learning progress bar design ProgressBar