//welcome to world!!!
//###################
//w#################!
//we###############!!
//wel#############!!!
//welc###########!!!!
//......
//welcome to bit!!!!!
#include <string.h>
#include <windows.h>
int main()
{
char arr1[] = "welcome to world!!!";
char arr2[] = "###################";
int left = 0;
int right = strlen(arr2)-1;
while (left<=right)
{
arr2[left] = arr1[left];
arr2[right] = arr1[right];
printf("%s\n", arr2);
Sleep(1000);
system("cls");//执行系统命令的 - 清空屏幕
left++;
right--;
}
printf("%s\n", arr2);
return 0;
}
最近新学的很有意思的代码
最新推荐文章于 2024-11-11 09:41:37 发布