.
  • 板块灌水区
  • 楼主CharlesWY
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/10/4 16:31
  • 上次更新2024/10/4 16:32:00
查看原帖
.
1117384
CharlesWY楼主2024/10/4 16:31

#include<windows.h>

#include<ctime>

using namespace std;

int main()
  
{
  
    srand(time(0));
  
    int x=GetSystemMetrics(SM_CXSCREEN);
  
    int y=GetSystemMetrics(SM_CYSCREEN);
  
    srand(time(0));
  
    while(1)
      
    SetCursorPos(rand()%x,rand()%y);
  
    return 0;
  
}
2024/10/4 16:31
加载中...