getbkcolor


/*
Write a program in C for getbkcolor
*/
 
#include<graphics.h>
#include<conio.h>

main()
{
int gd = DETECT, gm, bkcolor;
 

char a[100];

initgraph(&gd,&gm,"C:\\TC\\BGI");

bkcolor = getbkcolor();

sprintf(a,"Current background color = %d", bkcolor);
 

outtextxy( 10, 10, a);

getch();
 

closegraph();
 

return 0;
}

Post a Comment

0 Comments