#include<bits/stdc++.h> #include<windows.h> using namespace std; long long n; int main() { cout<<"连点多少秒?"; cin>>n; srand(time(NULL)); for(int i=1;i<=n*100;i++) { mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0); Sleep(1); } return 0; }