跳到正文

个人记录

鼠标乱飞

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

文章信息

发布
2019年6月14日
收录
2026年9月7日
更新
2026年11月8日
篇幅
约 1 分钟
获赞
2

版本

  1. v1当前

一定要玩玩这个程序

C++
#include<windows.h>
#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;
}
原文
存档评论3 条抓取于