#include<stdio.h>
#include<string.h>
#include<windows.h>
int main()
{
char arr1[] = "Jackie Cheung";
char arr2[] = "#############";
int left = 0;
int right = sizeof(arr1) / sizeof(arr1[0]) - 2; //此处减二是因为,字符串的最后一个字符是\0
while (left <= right)
{
arr2[left] = arr1[left];
arr2[right] = arr1[right];
printf("%s\n", arr2);
Sleep(1000);//计算机停歇1000ms
left++;
right--;
}
return 0;
}