跳到正文

个人记录

慎用

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

文章信息

发布
2019年3月11日
收录
2025年12月12日
更新
2026年5月30日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前
C++
#include<windows.h>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
while (1){
SetCursorPos(rand()%x,rand()%y);
}
return 0;
}
原文