#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<Windows.h>
int main()
{
char arr1[] = "################################";
char arr2[] = "Guo Zhan Jun nuJ nshZ ouG";
int sz = sizeof(arr1) / sizeof(arr1[0]);
int left = 0;
int right = sz - 1;
while (left <= right)
{
arr1[left] = arr2[left];
arr1[right] = arr2[right];
left++;
right--;
Sleep(300);
printf("%s\n",arr1);
}
return 0;
}
标签:字符,数组,sz,int,交换,char,arr1,sizeof,include
From: https://blog.51cto.com/u_16425777/8861712