赞
踩
博主初次写博客,写的不好请不要介意啦
编译采用逐步显示的方法,使内容一步一步显示,也就是本人喜欢的样式,但最后爱心为啥是框框也就不知道了,有的电脑可以显示有的却不行,博主也只有这个水平啦
- #define _CRT_SECURE_NO_WARNINGS
- #include<stdio.h>
- #include<Windows.h>
- #include<stdlib.h>
-
- void AINI()
- {
- int i;
- for(i=0; i<8; i++)
- {
- switch(i)
- {
- case 1:
- printf("\t\t\t\t\t--------请输入要加油人名字:--------\n");
- printf("\n");
- Sleep(1000);
- break;
- case 2:
- printf("\t\t\t\t\t-------------某某大宝贝-------------\n");
- printf("\n");
- Sleep(1000);
- break;
- case 3:
- printf("\t\t\t\t\t-------恭喜你通过英语四级考试-------\n");
- printf("\n");
- Sleep(1000);
- break;
- case 4:
- printf("\t\t\t\t\t------------四级考试就这------------\n");
- printf("\n");
- Sleep(1000);
- break;
- case 5:
- printf("\t\t\t\t\t------------宝贝轻松拿捏------------\n");
- printf("\n");
- Sleep(1000);
- break;
- case 6:
- printf("\t\t\t\t\t------马上为你传送某某的小心心------\n");
- printf("\n");
- Sleep(1000);
- break;
- case 7:
- printf("\t\t\t\t\t---(^-^)加油,(^-^)加油,(^-^)加油---\n");
- printf("\n");
- Sleep(1000);
- default:
- break;
- }
- }
- }
-
- void xin()
- {
- int i, j, k, l, m;
- char c=3;
- for (i=1; i<=5; i++) printf("\n");
- for (i=1; i<=3; i++)
- {
- for (j=1; j<=50-2*i; j++) printf(" ");
- Sleep(400);
- for (k=1; k<=4*i+1; k++) printf("%c", c);
- for (l=1; l<=13-4*i; l++) printf(" ");
- Sleep(400);
- for (m=1; m<=4*i+1; m++) printf("%c", c);
- printf("\n");
- }
- for (i=1; i<=3; i++)
- {
- for (j=1; j<=42+1; j++) printf(" ");
- Sleep(400);
- for (k=1; k<=29; k++) printf("%c", c);
- printf("\n");
- }
- for (i=7; i>=1; i--)
- {
- for (j=1; j<=58-2*i; j++) printf(" ");
- Sleep(400);
- for (k=1; k<=4*i-1; k++) printf("%c", c);
- printf("\n");
- }
- for (i=1; i<=57; i++) printf(" ");
- Sleep(400);
- printf("%c\n", c);
- for (i=1; i<=5; i++) printf("\n");
-
- }
-
-
- int main()
- {
- char name[100];
- int op;
- printf("\t\t\t\t\t--------四级英语考试加油必备--------\n");
- printf("\t\t\t\t\t请输入要加油的宝贝:");
- scanf("%s",&name[20]);
- printf("\n\t\t\t\t\t请输入加油指令:");
- scanf("%d",&op);
- switch(op)
- {
- case 520:
- AINI();
- break;
- default:
- break;
- }
- xin();
- return 0;
- }
爱心代码源自csdn另外一位博主:程序员张小妍c语言爱心代码_程序媛张小妍的博客-CSDN博客_爱心程序代码
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。