Sunday, November 23, 2008

Changes the position of cursor progam using c programming language

Q.Write a c program which changes the position of cursor?
Ans:
#include
#include
void main()
{
union REGS i,o;
i.h.ah=2; //positioning the cursor
i.h.bh=0;
i.h.dh=30;
i.h.dl=45;
int86(0x10,&i,&o);
printf("World");
getch();
}

No comments:

Blog List