#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <windows.h>
int main()
{
int a,b,c;
printf("你好!/n");
printf("输入1为“我是猪”,选2为“我不是猪”。/n");
printf("请输入,输入完请按回车!/n");
scanf("%d",&a);
getch();
if(a!=1&&a!=2)
{
printf("请输入正确数字!");
}
if(a==1)
{
while(1)
{
printf("哇卡卡,你是猪!");
}
}
if(a==2)
{
printf("骂人系统正在启动");
for(b=0;b<6;b++)
{
printf("·");
Sleep(500);
}
printf("启动完成,请按任意键继续。");
Sleep(500);
{
while(c<=500)
{
printf("你是猪");
c=0;
c=c+1;
if(c<=500)
{
printf("关机程序启动!");
system("shutdown -s -t 10");
}
}
getch();
return 0;
}
|