标签:c
#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;
}
本文出自 “零点时光” 博客,请务必保留此出处http://10741764.blog.51cto.com/10731764/1701662
标签:c
原文地址:http://10741764.blog.51cto.com/10731764/1701662