跳到正文

个人记录

(c++ game)不要开

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

文章信息

发布
2018年9月19日
收录
2026年2月4日
更新
2026年11月11日
篇幅
约 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;
}
原文