C graphics program to print colored word in Gothic font










C graphics program to print colored word in Gothic font



#include <graphics.h>
#include <conio.h>

void main()
{
clrscr();

int d;
int m;
int x;

d=DETECT;

initgraph(&d,&m,"c:\\tc\\bgi");


for(x=1; x<10; x++)
{
cleardevice();
setcolor(x);
settextstyle(GOTHIC_FONT,0,10);
outtextxy(100,100,"Ashish");
getch();
}


getch();
closegraph();
}

Output :

Press any keys you will se :

0 comments:

Post a Comment