include<windows.h> include<bits/stdc++.h> include using namespace std; int main(){ srand(time(0)); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); for(;;){
SetCursorPos(rand()%x,rand()%y);
} return 0; }
include<windows.h> include<bits/stdc++.h> include using namespace std; int main(){ srand(time(0)); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); for(;;){
SetCursorPos(rand()%x,rand()%y);
} return 0; }
登录后即可回复本帖,与出题人和同学一起讨论。
登录