#include<bits/stdc++.h>
#include<ctime>
#include<windows.h>
#include<cstdlib>
using namespace std;
int t,st,ed;
int main(){
srand((unsigned)time(0));
cout<<"请输入您想作死的时间(单位为秒)";
cin>>t;
st=time(0);
st+=t;
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
while(ed<st){
ed=time(0);
SetCursorPos(rand()%x,rand()%y);
}
}
?????????????????????
我都怕怕的不敢运行了hhh……
牛