#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int x1,y1,x2,y2;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
printf("Enter the left top coordinates : ");
printf("x1 : ");
scanf("%d",&x1);
printf("y1 : ");
scanf("%d",&y1);
printf("Enter the right bottom coordinates : ");
printf("x2 : ");
scanf("%d",&x2);
printf("y2 : ");
scanf("%d",&y2);
printf("Please wait : ");
setfillstyle(HATCH_FILL,14);
bar3d(x1,y1,x2,y2,0,0);
getch();
closegraph();
}
|
|
| To demonstrate the operation of set text style ( ) function. |
|
| |
|
|
|
|