好玩的代码
  • 板块灌水区
  • 楼主mathrormy
  • 当前回复13
  • 已保存回复13
  • 发布时间2024/9/17 16:15
  • 上次更新2024/9/17 16:20:02
查看原帖
好玩的代码
1029718
mathrormy楼主2024/9/17 16:15
#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/9/17 16:15
加载中...