///////////////////////////////////////////////////////////////////////////// // Ricket Project.... // ///////////////////////////////////////////////////////////////////////////// #include<constream.h> #include<graphics.h> void main(){ int gm , gd = DETECT; initgraph(&gd,&gm,"e:\\tc\\bgi"); cleardevice(); settextstyle(10,0,5); outtextxy(170,15,"Ricket"); line(258,191,258,240); line(262,191,262,240); line(258,241,262,241); line(258,240,248,255); line(262,240,272,255); // line(248,255,272,256); // line(248,255,272,255); rectangle(248,255,272,312); setfillstyle(6,2); bar(249,256,271,310); setcolor(6); ///coding for filling int scol=249,srow=118,ecol=271,erow=118; for(int i=1;i<=6;i++){ line(scol,srow,ecol,erow); if(i>=3 ||i>4){ scol-=2,srow+=4,ecol+=2,erow+=4; } else{ scol-=4,srow+=4,ecol+=4,erow+=4;} } scol=235,srow=142,ecol=285,erow=142; for( i=1;i<=7;i++){ line(scol,srow,ecol,erow); if(i>5||i>6||i>7){ scol+=3; ecol-=3; } srow+=4; erow+=4; } line(239,170,281,170); line(241,174,279,174); line(244,178,276,178); line(248,182,272,182); //column constant and row increasing coding line(252,116,252,184); line(248,118,248,182); line(244,122,244,178); line(240,126,240,174); line(236,134,236,166); line(256,114,256,186); line(260,114,260,186); line(264,114,264,186); line(268,116,268,184); line(272,118,272,182); line(276,122,276,178); line(280,126,280,174); line(284,134,284,166); setcolor(WHITE); ellipse(260,150,0,360,30,40); scol=260,srow=150; ellipse(260,150,0,360,26,36); getch(); getch();}
C Program To Create Ricket
January 04, 2015
By:
Bhanu Namikaze
Bhanu Namikaze
Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.
No comments:
Post a Comment