#include<graphics.h>
#include<dos.h>
#include<mem.h>
void initmouse();
void gemouse();
int main()
{
int driver=DETECT;
int mode;
initgraph(&driver,&mode,"");
cleardevice();
initmouse();
getmouse();
getch();
closegraph();
}
/* ------------------------------鼠标初始化----------------------------- */
void initmouse()
{
_AX=0;
geninterrupt(0x33);
mathview();
}
/* --------------------------鼠标坐标状态获取--------------------------- */
void getmouse()
{
_AX=3;
geninterrupt(0x33);
ms=_BX;
mx=_CX;
my=_DX;
}
是不是这样调用?