啊哈磊_编程从这里起步
标题:
你们敢运行吗
[打印本页]
作者:
森林木
时间:
2016-8-22 10:47
标题:
你们敢运行吗
[mw_shl_code=c,true]#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
void shui()
{
system("cls");
printf("病毒正在入侵电脑\n");
Sleep(1000);
printf("----------------------------------------");
Sleep(3000);
MessageBox(0,"——————————————入侵完成——————————————","prompt",MB_OK);
MessageBox(0,"你的电脑已中病毒","prompt",MB_OK);
MessageBox(0,"正在展开清除","prompt",MB_OK);
Sleep(5000);
MessageBox(0,"清除失败","prompt",MB_OK);
MessageBox(0,"正在关机","prompt",MB_OK);
system("shutdown -s -t 50");
}
int main()
{
int a;
system("cls");
srand((unsigned)time(NULL));
while(1)
{
system("cls");
printf("----------好玩的----------\n");
printf("1.开始游戏 \n");
printf("2.结束游戏 \n");
printf("--------------------------\n");
a=getch();
switch(a)
{
case'1':shui();
case'2':break;
}
}
return 0;
}[/mw_shl_code]
作者:
4399APPLE
时间:
2016-8-22 10:48
不就是个关机
作者:
天然呆萌小清新
时间:
2016-9-11 16:54
电脑要几分钟才关机啊?
作者:
JERRY_Y8SNm
时间:
2017-4-29 14:20
孩子,如果你真的想坑,把50改成1啊!不然我早就/a了!
作者:
赵林
时间:
2017-8-27 21:19
format
format
format
format
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2