free c programming course
Sunday, 11 January 2009
Write a c program which changes the position of cursor?
Answer: #include”dos.h” #include”stdio.h” 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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment