Program to draw 3-D bar



















Program to draw 3-D bar

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

void main()
{
int d,m;
int midx,midy;

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

midx=getmaxx()/2;
midy=getmaxy()/2;

bar3d(midx-50,midy-50,midx+50,midy+50,50,1);//solid bar
getch();
closegraph();
}

Output :

0 comments:

Post a Comment