字符跳动
#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<stdlib.h>
int main()
{
char arr1[]={"WHAT A SILLY DOG YOU ARE!"};
char arr2[]={" "};
int left=0;
int right=strlen(arr1)-1;
while(left<=right)
{
arr2[left]=arr1[left];
arr2[right]=arr1[right];
printf("%s\n",arr2);
Sleep(500);
system("cls");
left++;
right--;
}
printf("%s\n",arr2);
return 0;
}
标签:right,int,之路,arr2,arr1,include,left From: https://blog.51cto.com/u_16248324/7570862