// Use C++ Graphic Draw Human Face
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
dline(170,100,174,170);
line(170,100,220,80);
line(220,80,290,78);
line(290,78,329,89);
line(329,89,339,110);
line(174,170,193,160);
line(212,107,212,86);
line(212,107,214,140);
line(280,109,280,81);
ellipse(336,179,90,160,150,70);
line(193,158,240,152);
ellipse(327,170,38,160,90,60);
ellipse(307,148,30,120,70,30);
line(368,134,399,134);
ellipse(320,281,403,60,40,180);
ellipse(319,236,397,50,45,100);
ellipse(349,242,360,60,10,80);
ellipse(338,244,289,10,20,50);
// ellipse(298,248,270,16,60,20);
ellipse(335,191,290,320,10,160);
ellipse(292,282,296,7,60,20);
ellipse(179,200,50,170,17,30);
ellipse(177,210,150,180,17,30);
ellipse(175,185,210,250,17,50);
ellipse(183,206,240,280,25,30);
ellipse(171,182,310,320,29,70);
ellipse(175,232,30,110,20,60);
ellipse(207,186,197,227,40,50);
ellipse(177,197,50,140,5,6);
ellipse(176,199,310,390,7,7);
ellipse(174,290,290,420,20,60);
ellipse(245,230,177,250,50,65);
ellipse(279,253,230,280,80,50);
ellipse(285,253,280,307,50,50);
ellipse(320,160,10,170,27,3);
ellipse(365,165,190,257,77,3);
ellipse(297,165,120,190,8,7);
ellipse(237,160,10,170,27,3);
ellipse(284,165,190,257,77,3);
ellipse(215,165,120,195,8,7);
ellipse(257,165,340,70,8,7);
ellipse(317,190,100,160,19,14);
line(313,177,337,179);
ellipse(327,185,370,60,24,7);
ellipse(322,185,200,320,25,5);
ellipse(340,183,270,329,20,6);
ellipse(316,189,100,160,24,14);
circle(325,185,5);
ellipse(319,189,20,70,20,9);
ellipse(309,184,40,70,20,5);
ellipse(297,180,135,199,10,7);
ellipse(275,189,360,50,18,9);
ellipse(291,218,10,80,10,30);
line(301,213,301,222);
ellipse(297,224.6,309,70,12,13);
ellipse(287,225,110,240,12,13);
ellipse(283,214,340,50,10,7);
ellipse(285,235,17,90,9,10);
ellipse(294,222,190,260,11,10);
ellipse(295,222,290,340,11,10);
ellipse(254,186,10,80,13,10);
line(255,176,230,179);
line(230,179,216,187);
ellipse(242,182,230,340,26,7);
circle(244,183,5);
ellipse(240,193,90,117,10,13);
ellipse(272,194,330,90,3,13);
ellipse(268,156,310,90,3,13);
ellipse(288,156,90,270,3,13);
ellipse(242,192,230,340,20,7);
ellipse(332,192,230,340,20,7);
ellipse(279,271,80,150,27,22);
ellipse(282,262,50,80,10,12);
ellipse(292,241,250,299,10,12);
ellipse(302,258,100,140,6,10);
ellipse(304,270,30,100,27,22);
ellipse(304,240,4,75,19,17);
ellipse(281,238,100,170,27,15);
ellipse(280,258,209,295,25,10);
ellipse(288,257,230,320,20,4);
ellipse(291,260,273,360,35,8);
line(255,261,251,261);
line(328,260,331,260);
ellipse(293,253,30,70,9,14);
ellipse(292,253,120,150,9,14);
ellipse(292,281,40,140,20,2);
ellipse(224,195,140,180,30,63);
getch();
closegraph();
}
Comments
Post a Comment