|
#include <windows.h>#include <stdio.h>
#include <stdlib.h>
int main()
{
system("color f9");
printf("加载中..........\n");
system("cls");
while(1)
{ int a,b,c;
system("color b");
printf("欢迎您使用刘宇泽计算器");
printf("--------------------版本1.0--------------------\n");
printf("请输入第一个数(输入完毕后请按回车)(不用输入计算符号)\n");
scanf("%d",&a);
printf("请输入第二个数(输入完毕后请按回车)(不用输入计算符号)\n");
scanf("%d",&b);
printf("%d+%d=\n",a,b);
printf("他们的和是=%d\n",a+b);
printf("感谢您的使用!(按任意键可以继续下一次运算)\n");
int d,e;
d=0;
system("pause");
system("color c");
while(d<=5)
{
system("cls");
e=1;
while(e<=d)
{
printf(" ");
e=e+1;
}
printf(" O\n");
e=1;
while(e<=d)
{
printf(" ");
e=e+1;
}
printf("<H>\n");
e=1;
while(e<=d)
{
printf(" ");
e=e+1;
}
printf("I I\n");
Sleep(100);
d=d+1;
}
printf("cls");
}
system("pause");
return 0;
}
|
|