马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include<stdio.h>
#include<conio.h>
#include<windows.h>
void DrawPic(int flag );
void printSpace(int i);
int main()
{
int i;
int j=3;
printf(" *** ***\n");
printf(" ****** ******\n");
printf(" *****************\n");
printf(" ******* *******\n");
printf(" *** S ***\n");
printf(" **** ****\n");
printf(" *****\n");
printf(" * \n");
Sleep(1500);
printf(" *** ***\n");
printf(" ****** ******\n");
printf(" *****************\n");
printf(" ******* *******\n");
printf(" *** U ***\n");
printf(" **** ****\n");
printf(" *****\n");
printf(" * \n");
Sleep(1500);
printf(" *** ***\n");
printf(" ****** ******\n");
printf(" *****************\n");
printf(" ******* *******\n");
printf(" *** N ***\n");
printf(" **** ****\n");
printf(" *****\n");
printf(" * \n");
Sleep(1500);
system("cls");
printf(" *** ***\n");
printf(" ****** ******\n");
printf(" *****************\n");
printf(" ******* *******\n");
printf(" **** Sun ****\n");
printf(" **** ****\n");
printf(" *****\n");
printf(" * \n");
Sleep(1500);
system("cls");
printf("大家好~很高兴认识你们!\n\n");
Sleep(2000);
printf("我叫骆婷!也有很多人叫我小太阳!\n\n");
Sleep(2000);
printf("啊?你想问为毛他们叫我小太阳?\n\n");
Sleep(2000);
printf("啦啦啦,我就不告诉你!\n\n");
Sleep(2000);
system("cls");
printf("相信我们大家一定能成为友好的一家人~~~~\n\n");
Sleep(2000);
while(j!=0)
{
for(i=0;i<30;i++)
{
DrawPic(i);
Sleep(100);
system("cls");
}
j--;
}
system("cls");
}
void DrawPic(int flag)
{
printSpace(flag);
printf(" *** ***\n");
printSpace(flag);
printf(" ****** ******\n");
printSpace(flag);
printf(" *****************\n");
printSpace(flag);
printf(" ******* *******\n");
printSpace(flag);
printf(" *****DOg3****\n");
printSpace(flag);
printf(" **** ****\n");
printSpace(flag);
printf(" *****\n");
printSpace(flag);
printf(" * \n");
}
void printSpace(int i)
{
int j;
for(j=0;j<=i;j++)
{
printf(" ");
}
}
啦啦 萌妹子初识C语言 写了这个 棒棒哒八
|