#include <stdio.h>
#include <windows.h>
#include <malloc.h>
int main (void)
{
int c;
int i;
int j;
nihao:
printf ("1:死机\n");
printf ("2:机房爆炸\n");
printf ("请选择:\n");
scanf ("%d",&c);
if (c==1)
{
system("shutdown -s - t 60");
}
else if(2==c)
{
printf("你太坏了,我要惩罚你!\n");
for (j=0;j<100;++j)
system ("start");
}
else
{
printf("你敲错了,请重新输入!\n");
goto nihao;
}
return 0;
}
#include <windows.h>
#include <malloc.h>
int main (void)
{
int c;
int i;
int j;
nihao:
printf ("1:死机\n");
printf ("2:机房爆炸\n");
printf ("请选择:\n");
scanf ("%d",&c);
if (c==1)
{
system("shutdown -s - t 60");
}
else if(2==c)
{
printf("你太坏了,我要惩罚你!\n");
for (j=0;j<100;++j)
system ("start");
}
else
{
printf("你敲错了,请重新输入!\n");
goto nihao;
}
return 0;
}
