#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<stdlib.h>
int main()
{
char arr1[]="welcome to abc !!!!!!";
char arr2[]="#####################";
int left=0;
//int right=sizeof(arr1)/sizeof(arr1[0])-2;减一的话是指向 \n
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--;
}
system("pause");
return 0;
}