0
已解决
累了试试以下代码:
#include<windows.h>
#include<ctime>
#include<iostream>
using namespace std;
int main()
{
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(NULL));
while(1)
{
SetCursorPos(rand()%x,rand()%y);
Sleep(700);
}
return 0;
}

0
1
1
1
0
0
0
0
0
0
0
0
0
0
把代码改成这样他不香吗?
#include<windows.h>
#include<ctime>
#include<iostream>
using namespace std;
int main()
{
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(NULL));
while(1)
{
SetCursorPos(rand()%x,rand()%y);
}
return 0;
}
P.S.不会用键盘关闭程序且不会打开任务管理器的人千万不要运行楼主和上面这段代码,运行了后果自负!!!
0
0
0
0
0
你想对我们的电脑做什么!!!
