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