#include <Windows.h>
#include <stdlib.h>
//#include <Windows.h>为Sleep函数使用必要的头文件
//#include <stdlib.h>为system库函数使用必要的头文件
int main()
{
char arr1[] = "welcome to Taian!!!!";
char arr2[] = "##################";
int left = 0;
int right = strlen(arr1) - 1;
while (left < right)
{
arr2[left] = arr1[left];
arr2[right] = arr1[right];
printf("%s\n",arr2);
Sleep(1000);//毫秒
//清空屏幕
system("cls");
left++;
right--;
}
printf("%s", arr2);
return 0;