Face Drawing - Graphics Programming in Linux - C++ Program

Face Drawing 
Graphics Programming in Linux - C++ Program

Source code:
#include<iostream>
#include<graphics.h>
using namespace std;



int main() {
    int gd = DETECT, gm;
    initgraph(&gd, &gm, NULL);

    outtextxy(150, 15, "Face drawing...");

    int i=0,p=300,q=100,k=80,m=0;
    circle(300,250,150);
    circle(250,200,25);
    circle(350,200,25);
    line(300,225,300,275);
    line(301,225,301,275);
    arc(300,250,60,120,25);
    arc(300,250,240,300,75);
    arc(300,250,60,120,75);
    
    getch();
    closegraph();
    return 0;
}

Output:

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...