好东西(恶搞)

· · 个人记录

关机

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
    system("shutdown -s -t 60"); 
}

鼠标乱飞

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
const int X = GetSystemMetrics(SM_CXSCREEN);
const int Y = GetSystemMetrics(SM_CYSCREEN);
int main(){
    while(true){
        SetCursorPos(rand() % X, rand() % Y);
        Sleep(25);
    }
}

无限弹窗

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
    while(true){
        system("start cmd");
    } 
}

无限鼠标左右互换

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
    bool b = true;
    while(true){
        b = !b;
        SwapMouseButton(b);
        Sleep(25);
    }
}

大BOSS(不关机)

#include<bits/stdc++.h>
#include<windows.h>
const int X = GetSystemMetrics(SM_CXSCREEN);
const int Y = GetSystemMetrics(SM_CYSCREEN);
using namespace std;
int main(){
  bool b;
    while(true){
        SetCursorPos(rand() % X, rand() % Y);
        Sleep(25);
        system("start cmd");
        b = !b;
        SwapMouseButton(b);
        Sleep(25);
    }
}

大BOSS(关机)

#include<bits/stdc++.h>
#include<windows.h>
const int X = GetSystemMetrics(SM_CXSCREEN);
const int Y = GetSystemMetrics(SM_CYSCREEN);
using namespace std;
int main(){
  bool b;
    system("shutdown -s -t 60"); 
    while(true){
        SetCursorPos(rand() % X, rand() % Y);
        Sleep(25);
        system("start cmd");
        b = !b;
        SwapMouseButton(b);
        Sleep(25);
    }
}