C++ Program to draw umbralla couple (Simple Graphics)

#include <iostream.h>
#include <conio.h>
#include <graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\Tc\\BGI");
arc(150,150,80,230,70);
line(164,81,105,204);
line(133,145,179,180);
circle(200,120,30);
line(185,146,160,280);
line(215,146,212,283);
line(160,280,212,283);
line(163,280,180,350);
line(200,282,220,350);
line(200,180,250,250);
line(298,175,242,250);
circle(300,130,30);
line(285,156,260,280);
line(315,156,335,280);
line(260,280,335,280);
line(285,280,285,350);
line(310,280,310,350);
circle(335,150,10);
circle(335,168,7);
circle(335,180,5);
getch();
closegraph();
}

Output

0 comments:

Post a Comment