Draw Car - Graphics Programming in gcc - C++ Program

#include<graphics.h>
int main()
{
int gd = DETECT, gm;

initgraph(&gd, &gm,NULL);


line(0,300,640,300);

setcolor(4);


circle(100,285,15); 
circle(200,285,15);
circle(100,285,5);  
circle(200,285,5);

line(65,285,85,285);
line(115,285,185,285);
line(215,285,235,285);
line(65,285,65,260);
line(235,285,235,260);

line(65,260,100,255);
line(235,260,200,255);

line(100,255,115,235);
line(200,255,185,235);

line(115,235,185,235);


line(106,255,118,238);
line(118,238,118,255);
line(106,255,118,255);

line(194,255,182,238);
line(182,238,182,255);
line(194,255,182,255);

line(121,238,121,255);
line(121,238,148,238);
line(121,255,148,255);
line(148,255,148,238);


line(179,238,179,255);
line(179,238,152,238);
line(179,255,152,255);
line(152,255,152,238);
setcolor(4);
//floodfill(150,200,4);

getch();
closegraph();
}


11 comments:

  1. Can u define each commands and steps used.. it will be a great help

    ReplyDelete
  2. Nice Post....It will be helpful for beginner Student.Here is a blog for C++ Programming.

    ReplyDelete
  3. Draw a unique house in Computer graphics --> https://www.techfreakforu.in/2020/10/draw-a-house-in-c-graphics.html

    ReplyDelete
  4. Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. Kanados vizos prašymas

    ReplyDelete
  5. Great job, This content is very very great content, I got really good information from this content and it helps me a lot, I hope it can help many people like me. Visa-Medical-India

    ReplyDelete
  6. Great, thanks for sharing this post.Much thanks again. Awesome.
    dot net online training india
    net coure

    ReplyDelete
  7. Most sites add the ima군산출장샵ges to make sharing the content more social media friendly but any of the other platforms should be good for writing.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...