#include <iostream>
#include <windows.h>
#include <stdlib.h>
using namespace std;
void GetMousePos()
{
POINT point;
GetCursorPos(&point);
cout<<"X:"<<point.x<<"/tY:"<<point.y<<endl;
}
void MoveMouse()
{
int a=1,b=1;
cout<<"你中毒了,哈哈哈哈"<<endl;
SetCursorPos(a,b);
}
void main()
{
L:cout<<"..............."<<endl;
while(1){
int choice=2;
cout<<endl<<"请输入操作:";
switch(choice)
{
case 1: GetMousePos();break;
case 2: MoveMouse();break;
default: break;
}
};
goto L;
}