一、 鼠标跳或锁定:
1、代码:
#include<bits/stdc++.h>
#include<windows.h>
int main()
{
srand (time(0));
int x,y;
while(1)
{
x=rand()%1000+300; //x坐标的范围,可以换
y=rand()%600+300; //y坐标的范围,可以换
SetCursorPos(x,y); //x,y可以换成两个固定的值 即可改成鼠标锁定
}
return 0;
}
2、破解方法:
破解方法见下链接:点这里
二、直接关机:
1、代码:
#include <windows.h>
int main()
{
system ("shutdown -p");
}
2、破解方法:
???
这能破解吗
当然可以,但是要提前做好准备:点这里
三、弹出提问窗口:
1、代码:
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
using namespace std;
int main()
{
system("mode con cols=20 lines=5");
while (MessageBox(NULL,TEXT("Are you a pig ? 你 是 猪 吗 ?"),TEXT("你是猪"),MB_YESNO)==IDNO)
{
}
MessageBox(NULL,TEXT("I know,you are a pig . 知 道 了,你 是 猪。"),TEXT("你是猪"),MB_OK);
}
2、破解方法:
直接关掉左上角的窗口就行了。
四、无限弹出 cmd 窗口:
1、代码:
#include <windows.h>
int main()
{
while (1) system("start cmd");
}
2、破解方法:
同 鼠标跳或锁定
五、定时关机、注销,取消关机等:
由于情况较多、方法不一,请点击下面方框查看: