Categorized | General

A handy C-code snippet for all the programmers…

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();
}

1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 4.86 out of 5)
Loading ... 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

Site Sponsors

  • gabriela: i know this phone is so cool because i have it
  • John C. Reid: Kaspersky recently found Malware preinstalled on a new, sealed one of these. Link –>...
  • code learner: Hey good! it works dude… thanks
  • rohit: fortiguard has blocked every thing ..sir even keygen site facebook etc… i want to bypass it …...
  • Darshan Pandit: Great work! Even I’ve been looking for some interesting guide for ActionScripting. You must...

Older Posts

Ads

  • Advertise Here

Topics