#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<windows.h>
void print(char *str,int n)
{
int i=0;
for(i = 0;i < n;i++)
{
printf("%c", str[i]);
}
printf("\n");
}
void fun()
{
//##########################
//@My name is Chen Tian @
char ch1[]="##########################";
char ch2[]="@My name is Chen Tian @";
int i=0;
int sz=sizeof(ch1)/sizeof(ch1[0]) - 1;
for(i=0;i<=(sz-i);i++)
{
print(ch1,sz);//sz为数组长度
ch1[i]=ch2[i];
ch1[sz-1-i]=ch2[sz-1-i];
Sleep(1000);
}
}
int main()
{
fun();
system("pause");
return 0;
}