没事来发个光标恶作剧代码
#include <windows.h>int main(void){
FreeConsole();
int sw = GetSystemMetrics(SM_CXSCREEN);
int sh = GetSystemMetrics(SM_CYSCREEN);
for( ;; )
{
srand(GetTickCount());
SetCursorPos((rand() % sw) + 1, (rand() % sh) + 1);
}
}

还有那位大虾做写个拽点的分享分享
