A handy C-code snippet for all the programmers…
om | Sep 02, 2008 | 0 comments

#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();
}
Related posts:
- C# code snippet for demonstration of data casting!
- C-code snippet to print a file by removing comments
- C code snippet to generate Kaprekar’s magical constant 6174
- Useful JavaScript code snippet to save your website content from being copy-pasted!
- How to analyze the Google Adsense code?
Filed Under: Archive Categories
