Google Search

Custom Search

Sunday, February 14, 2010

Write the C Program Color Graphics Mode

Write the c program to switch the 256 color graphics mode ?.

Ans:
#include
#include
void main()
{
int x,y,b;
union REGS i,o;
i.h.ah=0;
i.h.al=0x13;
int86(0x10,&i,&o);
getch();
}


Write a c program to create a directory in current working directory?

Ans:
#include
void main()
{
union REGS i,o;
i.h.ah=0x39;
i.x.dx="lakshmi";
int86(0x21,&i,&o);
getch();
}

No comments: