不废话,上代码!!
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void virus1()
{
for(int i=1;i<=1000000;i++){
SetCursorPos(88,99);
}
}
void virus2()
{
for(int i=1;i<=1000000;i++){
SetCursorPos(i/1000,i/989);
}
//这波代码很棒
}
int main()
{
for(int i=1;i<=5;i++){
cout<<"病毒正在启动中.";
Sleep(100);
system("cls");
cout<<"病毒正在启动中..";
Sleep(100);
system("cls");
cout<<"病毒正在启动中...";
Sleep(100);
system("cls");
}
char n;
n=MessageBox(NULL,"输入系统故障,即将与鼠标控制器失去信息传输,你想要修复它吗?","此电脑",MB_YESNOCANCEL|MB_ICONERROR);
if(n==IDYES)
{
cout<<"正在修复中...";
Sleep(2000);
cout<<"病毒已卸载";
}
else
{
char s=MessageBox(NULL,"发现病毒,危害程度:5/5","金山毒霸",MB_YESNOCANCEL|MB_ICONERROR);
cout<<"已失去输入系统主动权";
virus1();
system("cls");
cout<<"输入系统被黑";
virus2();
system("cls");
s=MessageBox(NULL,"病毒已被紧急清理","金山毒霸",MB_YESNOCANCEL|MB_ICONERROR);
}
char o;
o=MessageBox(NULL,"经过我的病毒一折磨,你的电脑变干净啦!!!","作者(我是男的!!!)",MB_YESNOCANCEL|MB_ICONERROR);
return 0;
}