c语言+API实现恶作剧程序

恶作剧一:鼠标禁锢:
#include<windows.h>
#pragma comment(linker,"/subsystem:\"Windows\" /entry:\"mainCRTStartup\"")
void main()
{
        int x,y;
        while(1)
        {
         x=1;
         y=1;
         SetCursorPos(x,y);
        }
        return ;
}

恶作剧二:鼠标乱抖:
#include<windows.h>
#include<stdio.h>
#pragma comment(linker,"/subsystem:\"Windows\" /entry:\"mainCRTStartup\"")
void main()
{
int x,y; 
while(1)
        {x=rand()%801;
         y=rand()%601;
         SetCursorPos(x,y);
        }
return ;
}