Home   Easy-Code    Forum  Updater 
Twitter Facebook



Taj using c graphics two

Critics Rating:

Users Rating:



#include <stdio.h>

#include <graphics.h>

main()

{

int gd=DETECT,gm;

int i,j,radius;



initgraph(&gd,&gm,"g:\\exe\\tcnew\\bgi");

for (radius=1;radius<=25;radius++)

settextstyle(1,0,12);

outtextxy(285,-3,"^");

settextstyle(1,0,1);

rectangle(145,190,480,420);

/*the above lines are rec,arc*/

settextstyle(4,0,6);

outtextxy(13,45,"^");

arc(312,190,0,180,128);

settextstyle(4,0,6);

outtextxy(564,50,"^");

arc(25,100,0,180,25);

rectangle(50,160,0,420);

rectangle(50,100,0,420);

arc(575,100,0,180,25);

rectangle(550,160,600,420);

rectangle(550,100,600,420);

{

settextstyle(3,0,10);

outtextxy(290,292,"");

{

settextstyle(1,0,3);

outtextxy(15,396,"");

outtextxy(570,396,"");

settextstyle(1,0,4);

{

outtextxy(150,156,"");

outtextxy(460,156,"");

}

settextstyle(1,0,3);

outtextxy(260,215,"TAJ MAHAL");

/*arc(315,305,0,180,85);*/

rectangle(230,220,400,420);

arc(315,325,0,180,85);

rectangle(230,240,400,420);

}

settextstyle(4,2,8);

radius=10;

radius= radius+5;

/*outtextxy(radius,450,"(");*/

}

settextstyle(4,0,3);

for (j=0;j<=18;j++)

{

   for (i=1;i<=3;i++)

   {

    outtextxy(-15+(i*15),93+(j*15*1),"");

    outtextxy(535+(i*15),93+(j*15*1),"");

   }

settextstyle(1,0,2);

outtextxy(155,145,"1");

outtextxy(465,145,"1");

}

settextstyle(1,0,6);

outtextxy(165,245,"");

outtextxy(435,245,"");

outtextxy(165,345,"");

outtextxy(435,345,"");

getch();

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.