#include <windows.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
char word[] = { "welcome to bite!!!" };
char star[] = { "******************" };
int i = 0;
int star_sz = sizeof(star) / sizeof(star[0]);
int word_sz = sizeof(word) / sizeof(word[0]);
for (i = 0; i <star_sz; i++)
{
printf("%c", star[i]);
//printf("%c", star[star_sz-i]);
Sleep (500);
}
int j = 0;
for (j = 0;j < star_sz; j++)
{
star[j] = word[j];
star[star_sz - j] = word[word_sz - j];
int k = 0;
for (k = 0; k < star_sz; k++)
{
printf("%c", star[k]);
}
Sleep (500);
system("cls");
}
return 0;
}
220417-C-清屏打印
最新推荐文章于 2022-08-19 18:05:42 发布