你们知道吗?
本来我是想搞一个恶搞程序的,结果一不小心把自己给整了
效果:
你进去以后就会一直跳出弹窗,让你关机
代码:
你们最爱的代码来啦!
考虑到一些没有账号的人没法复制代码块,所以我先给一分纯文本:
#include<bits/stdc++.h>
#include<Windows.h>
int main(){
system("mode con cols=14 lines=1");
ShowWindow(GetForegroundWindow(),0);
while(1)if(MessageBox(NULL,("你要关机吗?"),("再见!"),MB_YESNO | MB_ICONWARNING) == IDYES)system("shutdown /s");
return 0;
}
代码块:
#include<bits/stdc++.h>
#include<Windows.h>
int main(){
system("mode con cols=14 lines=1");
ShowWindow(GetForegroundWindow(),0);
while(1)if(MessageBox(NULL,("你要关机吗?"),("再见!"),MB_YESNO | MB_ICONWARNING) == IDYES)system("shutdown /s");
return 0;
}