///////////////////////////////////////////////////////////////////////////// // Kite Project.... #include<constream.h> #include<dos.h> #include<graphics.h> int Line_Order(int, int ,int ,int); void main(){ int gm, gd = DETECT; initgraph(&gd,&gm,"e:\\tc\\bgi"); cleardevice(); setcolor(10); settextstyle(10,0,6); outtextxy(205,0,"KITE."); setcolor(15); outtextxy(207,2,"KITE."); ///////////////////////////////////////////////////////////////////////////// setcolor(WHITE); line(300,120,300,300); setcolor(WHITE); line(209,209,299,119);//Left Line line(208,209,298,119); line(209,211,299,301);//Right Line line(207,210,297,300); line(300,119,390,209);//Right Line line(301,119,391,209); line(390,209,300,299);//Left down line(390,210,300,300); int scol=210,srow=210,ecol=300,erow=120; for(int i=scol;i<=ecol;i++){ setcolor(6); line(scol,srow,ecol,erow);// Left Line scol++; srow++; ecol++; erow++; if(erow==210) {break; } } setcolor(WHITE); line(289,290,310,290);//up straigh line line(289,289,310,289); line(289,289,268,310);//Line for End Portion line(290,289,269,310); line(310,290,330,310);//right up to down line(309,290,329,310); line(268,311,330,311);//Down Line setcolor(BROWN); int left=290,right=309,down=291; for( i=1;i<=20;i++){ line(left,down,right,down); left-=.2,right+=1,down++; } setcolor(WHITE); ellipse(300,220,379,161,95,30); getch(); } int Line_Order(int a,int b,int c,int d) { line(a,b,c,d); return 0; }
C Program To Create A Kite
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