写一个恶搞的代码,效果是无限弹窗+鼠标乱飞+电摇嘲讽。
但是弹窗会将电摇窗口盖过去,所以加了一个置顶窗口。
解决方法我暂时只想到了关机
(本代码仅供娱乐,任何责任与作者无关)
上代码:
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void zhiding(HWND &hwnd)
{
SetWindowPos(hwnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
}
int main()
{
HWND hwnd=GetForegroundWindow();
while(1)
{
zhiding(hwnd);
system("start");
SetCursorPos(rand()%1000,rand()%1000);
cout<<" ********** "<<'\n';
cout<<" ************** "<<'\n';
cout<<" **************** "<<'\n';
cout<<" ************** "<<'\n';
cout<<" ********** "<<'\n';
cout<<" ***** "<<'\n';
cout<<" ***** ****"<<'\n';
cout<<" ****************** *"<<'\n';
cout<<" **** ****"<<'\n';
cout<<" ****************** *"<<'\n';
cout<<" **** "<<'\n';
cout<<" **** "<<'\n';
cout<<" **** "<<'\n';
cout<<" **** "<<'\n';
cout<<" **************** "<<'\n';
cout<<" **** * "<<'\n';
cout<<" ************ * "<<'\n';
cout<<" * * "<<'\n';
cout<<" * * "<<'\n';
cout<<" * * "<<'\n';
cout<<" *** *** "<<'\n';
Sleep(0.0001);
system("cls");
cout<<" ********** "<<'\n';
cout<<" ************** "<<'\n';
cout<<" **************** "<<'\n';
cout<<" ************** "<<'\n';
cout<<" ********** "<<'\n';
cout<<" ***** ****"<<'\n';
cout<<" ***** ******** *"<<'\n';
cout<<" ********** ****"<<'\n';
cout<<" **** ******** *"<<'\n';
cout<<" ********** "<<'\n';
cout<<" **** "<<'\n';
cout<<" **** "<<'\n';
cout<<" **** "<<'\n';
cout<<" **** ******** "<<'\n';
cout<<" ****** * "<<'\n';
cout<<" **** * "<<'\n';
cout<<" **** ****** * "<<'\n';
cout<<" ****** * * "<<'\n';
cout<<" * * "<<'\n';
cout<<" * * "<<'\n';
cout<<" * * "<<'\n';
cout<<" *** *** "<<'\n';
Sleep(0.0001);
system("cls");
zhiding(hwnd);
}
}