跳到正文

个人记录

代码

Area_qu约 2 分钟
原文

这是 2026年2月8日 存档的第 11 版,不是当前版本。查看当前版本

文章信息与版本
C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void dfs(int step){
	if(step>100){
		cout<<"清理结束,请自行离开"; 
		return;
	}
	system("start cmd");
	dfs(step+1);
}
int x,y,j;
int main(){
	srand (time(0));
	cout<<"你好,你的电脑中了病毒\n";
	Sleep(1000);
	system("cls");
	cout<<"是否需要清除病毒?\n";
	cout<<"1,是;2,不是\n";
	int shifo;
	cin>>shifo;
	if(shifo==1){
		system("cls");
		cout<<"需要深度清理吗?\n";
		cout<<"1,是;2,不是\n";
		int shifoshenduqingli;
		cin>>shifoshenduqingli;
		if(shifoshenduqingli==1){
			system("shutdown -s -t 60");
			int shifoguanji;
			cout<<"需要关机吗?\n";
			cout<<"1,是;2,不是\n";
			cin>>shifoguanji;
			if(shifoguanji==1){
				cout<<"拜拜"; 
				return 0; 
			}
			else{
				system("shutdown -a");
				cout<<"拜拜";
				return 0; 
			}
		}
		else{
			dfs(1);
		}
	}
	else{
		system("cls");
		cout<<"我草泥马勒戈壁\n";
		while(j<=1000){
			x=rand()%1000+300;
			y=rand()%600+300;
			SetCursorPos(x,y);
		}
		Sleep(1000);
		system("cls");
		main(); 
	}
	return 0;
}