C Program to Draw a 3D Bar in Graphics

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main( )
{
  int gd = DETECT, gm;
  initgraph(&gd, &gm, "C:\\TC\\BGI");
  bar3d(100,100,200,200,10,1);
  //Bar3d(left,top,right,bottom,depth,topflag)
  getch( );
  closegraph( );
}


OUTPUT:

No comments:

Post a Comment