#include <stdio.h>
#include <unistd.h>
int main()
{
for (int i = 0; i <= 100; i++)
{
printf("\rPercent complete: %3d%%", i);
fflush(stdout);
sleep(1);
}
return 0;
}
#include <stdio.h>
#include <unistd.h>
int main()
{
for (int i = 0; i <= 100; i++)
{
printf("\rPercent complete: %3d%%", i);
fflush(stdout);
sleep(1);
}
return 0;
}
本文标题:代码
本文链接:https://www.haomeiwen.com/subject/ykhtcftx.html
网友评论