字符串置换
#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<stdlib.h>
int main()
{
char arr1[] = "www.com";
char arr2[] = "#######";
int right = strlen(arr1) - 1;
int left = 0;
while (left <=right)
{
arr2[left] = arr1[left];
arr2[right] = arr1[right];
printf("%s", arr2);
Sleep(1000);//相邻两个输出之间的时间间隙(单位是毫秒)
system("cls");//显示完一个结果后删除一个结果
left++;
right--;
}
return 0;
}