#include<stdio.h>
#include<string.h>
#include<windows.h>
int main()
{
char arr1[]="###############";
char arr2[]="welcome to bit!";
int left=0;
int i=0;
int size=(strlen(arr1)+1)/2;
int right=strlen(arr1)-1;
for(i=0;i<size;i++)
{ arr1[left]=arr2[left];
arr1[right]=arr2[right];
left++;
right--;
printf("%s\n",arr1);
Sleep(1000);
}
return 0;
}
时间: 2024-10-13 12:30:20