Posted on 02 September 2008
The following
C-Code snippet illustrates how to use
BARS, which are used for
visual statistics… Have a quick look!
#include < graphics.h >
void main() {
int gd=DETECT,gm,maxx,maxy,x,y,button;
initgraph(&gd,&gm,”");
line(80,150,200,150);
line(80,150,80,50);
settextstyle(1,HORIZ_DIR,1);
outtextxy(100,153,”<-X axis");
settextstyle(1,VERT_DIR,1);
outtextxy(60,50,"<-Y axis");
bar(100,100,120,150);
bar(130,120,150,150);
closegraph();
}

Loading ...
This post was authored by:
om - who has written 174 posts on Tech Pedia.
Om is a dynamic entrepreneur, founder CEO, Webfosys Networks Pvt Ltd that provides IT, content creation, SEO & Website Design services to several clients across the globe. He has written over 10,000 articles, and he's a platinum level ezine author too. For relevant work mail him to: om@webfosys.com
Contact the author
Leave a Reply