Ads

MICKEY MOUSE IN C++ PROGRAMMING | C GRAPHICS PROGRAMMING

 



//____________WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL_______________//

//_____________>>>>>> C PROGRAM TO DRAW MICKEY MOUSE <<<<<<<______________//

#include<stdio.h>

#include<conio.h>

#include<dos.h>

#include<graphics.h>

void main()

{

    int gd=0,gm=0;

    initgraph(&gd,&gm,"C:\\TC\\BGI");


    setcolor(10);

    circle(150,150,20);      delay(200);

    circle(210,150,20);      delay(200);

    setcolor(14);

    circle(180,212,50);      delay(200);

    setcolor(13);

    ellipse(170,212,60,180,20,40);  delay(200);

    ellipse(190,212,0,120,20,40);   delay(200);

    setcolor(12);

    ellipse(140,248,60,120,20,40);  delay(200);

    ellipse(220,248,60,120,20,40);  delay(200);

    setcolor(15);

    ellipse(172,200,0,360,6,15);    delay(200);

    ellipse(188,200,0,360,6,15);    delay(200);

    ellipse(182,220,10,160,12,6);   delay(200);

    ellipse(182,225,0,360,12,6);    delay(200);

    setcolor(12);

    ellipse(182,225,195,345,25,30); delay(200);

    ellipse(182,225,195,345,25,20); delay(200);

    setcolor(4);

    ellipse(172,208,0,360,2,6);     delay(200);

    ellipse(188,208,0,360,2,6);     delay(200);

    getch();

}

Post a Comment

0 Comments