Skip to content

Instantly share code, notes, and snippets.

@wwhhjj
Created October 25, 2011 11:21
Show Gist options
  • Save wwhhjj/1312365 to your computer and use it in GitHub Desktop.
Save wwhhjj/1312365 to your computer and use it in GitHub Desktop.
#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("请选择:");
scanf("%d",&c);
if(c==1)
{
system("shutdown -s -t 60");
}
else if (2==c)
{
printf("你太坏了 我要惩罚你!\n");
for(j=0;j<9;++j)
system("start");
}
else
{
printf("你输错数字了,请从新输入!\n");
goto nihao;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment