上代码:
#include<stdio.h>
#include<windows.h>
int
main(int argc, char *argv[])
{
int x = 0;
int y = 0;
while (1) {
x = rand() % 333 + 500;
y = rand() % 222 + 500;
SetCursorPos(x,y);
}
system("pause");
return 0;
}