-
-
Save donly/1313361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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