#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;
}慎用
文章信息与版本
文章信息
- 发布
- 2019年3月11日
- 收录
- 2025年12月12日
- 更新
- 2026年5月30日
- 篇幅
- 约 1 分钟
- 获赞
- 1