My photo
Bangalore, Karnataka, India
Extending one hand to help someone has more value rather than joining two hands for prayer

Archives

program which define the pixel of the cursor while moving on the screen

Tuesday, September 1, 2009

#include<iostream.h>
#include<conio.h>
#include<dos.h>
int a,b,c,k;
void main()
{   clrscr();
    REGS n,m;
    n.x.ax=0;
    int86(0x33,&n,&m);
    k=m.x.ax;
    if(k==0)
    return;
    while(!kbhit())
    {  n.x.ax=1;
       int86(0x33,&n,&m);
       n.x.ax=3;
       int86(0x33,&n,&m);
       a=m.x.cx;
       b=m.x.dx;
       c=m.x.bx;
       gotoxy(10,20);
       cout<<a<<","<<b<<","<<c;
    }
    getch();
 }

0 comments: