#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<windows.h>
int main()
{
while (1)
{
char arr1[] = "*******************************";
char arr2[] = " ";
int left1 = 15;
int right1 = 15;
while (right1 <= strlen(arr1) - 1)
{
arr2[left1] = arr1[left1];
arr2[right1] = arr1[right1];
printf("%s\n", arr2);
Sleep(100);
// system("cls");
left1--;
right1++;
}
char ar1[] = " ";
char ar2[] = "*******************************";
int left = 0;
int right = strlen(ar1) - 1;
while (left <= right)
{
ar2[left] = ar1[left];
ar2[right] = ar1[right];
printf("%s\n", ar2);
Sleep(100);
// system("cls");
left++;
right--;
}
}
return 0;
}
10-18
422
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)