#include <stdio.h>
int main()
{
system("color 0a");
int a,b,c;
c=6;
srand((unsigned)time(NULL));
a = rand()%100;
while(1)
{
c--;
scanf("%d",&b);
if(b>a)
printf("大了,还剩下%d次机会\n",c);
if(b<a)
printf("小了,还剩下%d次机会\n",c);
if(b==a)
{
printf("系统关机程序已取消\n");
break;
}
if(c==0)
{
printf("Windows 将在50秒后关机!\n");
system("shutdown -s -t 50");
break;
}
}
system("pause");
return 0;
}
while(1>0)
{
printf("0 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 1");
}
system("pause");
return 0;
|