根据上个帖子,更正了1和5:
#include<iostream>
#include<windows.h>
#define maxn 1000000
#define maxm 1000
using namespace std;
int main()
{
cout<<"电脑病毒\n";
Sleep(1000);
cout<<"就是病毒haha\n";
Sleep(1000);
cout<<"你有1/5的概率存活";
Sleep(1000);
system("cls");
while(1)
{
cout<<"输入一个数字(1-5):\n";
int a;cin>>a;
if(a==1)
{
cout<<"你好像很想摸鱼";
while(1)
system("start https://digdig.io/");
}
else if(a==2)
{
cout<<"you are surive!!!(真的吗)";
Sleep(1000);
cout<<"但是,你的电脑想休息了";
Sleep(100);
system("shutdown /s /t 3");
}
else if(a==3)
{
cout<<"弹窗已出现";
while(1) system("start cmd");
}
else if(a==4)
{
cout<<"你竟然活了下来!!!";
Sleep(1000);
return 0;
}
else if(a==5)
{
cout<<"鼠标叛变事件!!!";
while(1)SetCursorPos(rand()%1000,rand()%1000);
}
}
}