Subscribe Our Channel

header ads

Search This Blog

Monday, April 17, 2023

C++ PROGRAM TO DRAW QUTUB MINAR | QUTUB MINNAR IN C LANGUAGE | LEARN C LANGUAGE

 //____/____ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL _____\______//


//----------------- C++ PROGRAM TO DRAW QUTUB MINAR ----------------------\\

/*________________________________________________________________________*/


#include<stdio.h>

#include<conio.h>

#include<graphics.h>

#include<dos.h>

void main()

{

int gd=DETECT,gm;

initgraph(&gd,&gm,"c://tc//bgi");


rectangle(10,10,610,476);

rectangle(15,15,605,471);


setfillstyle(10,10);

line(255,470,265,355);

line(350,470,340,355);

ellipse(303,357,180,360,50,15);

ellipse(303,347,180,360,50,15);

floodfill(260,455,15);


setfillstyle(2,15);

line(265,355,273,255);

line(340,355,332,255);

ellipse(303,247,180,360,40,15);

ellipse(303,257,180,360,40,15);

floodfill(270,357,15);


setfillstyle(10,15);

line(273,255,280,170);

line(332,255,325,170);

ellipse(303,170,180,360,30,13);

ellipse(303,177,180,360,30,13);

floodfill(275,255,15);


setfillstyle(9,4);

line(280,178,285,120);

line(325,178,318,120);

ellipse(302,115,180,360,23,10);

ellipse(302,120,180,360,23,10);

floodfill(282,175,15);


setfillstyle(6,4);

line(285,120,290,70);

line(318,120,313,70);

ellipse(302,75,180,360,17,5);

ellipse(302,80,180,360,17,5);

floodfill(286,118,15);


setfillstyle(7,YELLOW);

line(290,70,313,70);

floodfill(291,71,15);


setcolor(11);

line(293,68,296,40);

line(310,68,307,40);

line(296,40,307,40);

line(296,40,287,30);

line(307,40,315,30);

ellipse(301,30,0,360,13,3);

line(297,68,297,58);

line(297,58,304,58);

line(304,58,304,68);


   setcolor(6);

   outtextxy(50,30,"I AM PROUD");

   setcolor(15);

   outtextxy(65,45,"TO BE");

   setcolor(10);

   outtextxy(50,60,"AN INDIAN");

   outtextxy(435,430,"Created by :- ");

   outtextxy(435,445,"COMPUTER SOFT SKILLS");

   outtextxy(435,460,"(ROHIT)");


getch();

}


/*---------------- I HOPE YOU LIKE THIS PROGRAMMING ---------------------*/


/*____________ LIKE __________ SHARE _________ SUBSCRIBE _________________*/





SAD EMOJI IN C PROGRAMMING | EMOGI IN C++ LANGUAGE | LEARN C LANGUAGE

 //____/____ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL _____\______//


//------------------- C++ PROGRAM TO DRAW SAD EMOJI -----------------------\\

/*________________________________________________________________________*/



#include<stdio.h>

#include<conio.h>

#include<graphics.h>

void main()

{

int gd=DETECT, gm;

initgraph(&gd,&gm,"c://tc//bgi");


setcolor(10);

rectangle(5,5,620,475);


//-----FACE

setcolor(15);

setfillstyle(SOLID_FILL,14);

circle(340,190,169);

floodfill(351,151,15);


//-----LEFT EYE

setcolor(15);

setfillstyle(1,0);

circle(260,140,40);

floodfill(261,141,15);

setfillstyle(1,15);

circle(271,136,27);

floodfill(272,137,15);


//-----LEFT EYEDROP

setfillstyle(1,9);

ellipse(260,198,0,360,5,12);

floodfill(261,199,15);


//----- RIGHT EYE

setfillstyle(1,0);

circle(405,140,40);

floodfill(406,141,15);

setfillstyle(1,15);

circle(416,136,27);

floodfill(417,137,15);


//------ RIGHT EYEDROP

setfillstyle(1,9);

ellipse(413,198,0,360,5,12);

floodfill(414,199,15);


//----- LEFT EYEBROW

setcolor(0);

setfillstyle(1,0);

line(220,90,300,90);

line(220,90,220,87);

line(220,87,300,87);

line(300,87,300,90);

floodfill(221,89,0);


//---- RIGHT EYEBROW

setfillstyle(1,0);

line(370,90,450,90);

line(370,90,370,87);

line(370,87,450,87);

line(450,87,450,90);

floodfill(371,89,0);


setcolor(11);

outtextxy(435,430,"Created by :- ");

outtextxy(435,445,"COMPUTER SOFT SKILLS");

outtextxy(435,460,"(ROHIT)");


//----- SAD MOUTH

setcolor(4);

arc(336,300,0,180,52);

arc(337,300,0,180,52);

getch();

closegraph();

}


/*---------------- I HOPE YOU LIKE THIS PROGRAMMING ---------------------*/


/*____________ LIKE __________ SHARE _________ SUBSCRIBE _________________*/


MURDER ANIMATION IN C++ PROGRAMMING | KILLER KILLED ANIMATION IN C LANGUAGE | LEARN C PROGRAMMING

 //____/____ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL _____\______//


//----------------- C++ PROGRAM TO CREATE MURDER ANIMATION ---------------\\

/*________________________________________________________________________*/


#include<graphics.h>

#include<stdio.h>

#include<conio.h>

#include<dos.h>


void man();

void man2();


void main()

{

int a,b;

int gdriver = DETECT,gmode;

initgraph(&gdriver,&gmode,"C:\\TC\\BGI");


man();

man2();


delay(2000);

b=0;

for(a=0;a<43;a++)

{


//....bullet.....

b=b+6;

setcolor(14);

line(130+b,315,137+b,315);

line(130+b,316,137+b,316);

delay(50);

setcolor(15);

cleardevice();

man();

man2();

}


{

//_____killed man______//

setcolor(15);

ellipse(410,375,0,360,7,9);

circle(413,372,1);

circle(413,380,1);

line(406,373,406,378);

line(380,375,403,375);

line(350,365,380,375);

line(380,375,350,390);

line(400,375,380,400);

line(380,365,395,375);

setcolor(15);


cleardevice();

man();

}


//----killed man----//


setcolor(12);

ellipse(410,375,0,360,7,9);

circle(413,372,1);

circle(413,380,1);

line(406,373,406,378);

setcolor(15);

line(380,375,403,375);

line(350,365,380,375);

line(380,375,350,390);

line(400,375,380,400);

line(380,365,395,375);

setcolor(15);

getch();

}


void man()

{


//-----killer man ---//

ellipse(100,300,0,360,7,9);

circle(102,298,1);

line(103,303,105,303);

rectangle(99,310,102,315);

rectangle(97,315,105,335);

line(97,335,97,355);

line(105,335,101,355);

ellipse(101,357,0,360,5,2);

line(102,322,107,327);

line(103,326,108,330);

line(107,327,110,320);

line(108,330,111,321);


//....GUN

setcolor(11);

line(97,324,127,319);

line(104,320,129,316);

line(97,324,102,329);

line(104,320,102,329);

line(108,317,110,320);

line(126,320,127,316);


//sun

setcolor(14);

setfillstyle(SOLID_FILL,14);

circle(295,60,20);

floodfill(296,70,14);

setcolor(15);


//  ground //

setfillstyle(1,7);             //footpath starts

  setcolor(7);

  rectangle(0,200,640,220);

  rectangle(80,200,40,220);

  bar(40,200,0,220);

  rectangle(0,200,40,220);

  bar(40,200,80,220);

  rectangle(80,200,120,220);

  bar(120,200,160,220);

  rectangle(160,200,200,220);

  bar(200,200,240,220);

  rectangle(240,200,280,220);

  bar(280,200,320,220);

  rectangle(320,200,360,220);

  bar(360,200,400,220);

  rectangle(400,200,440,220);

  bar(440,200,480,220);

  rectangle(480,200,520,220);

  bar(520,200,560,220);

  rectangle(560,200,600,220);

  bar(600,200,640,220);


  setfillstyle(1,6);               //Pole starts

  setcolor(6);

  bar(0,155,640,160);

  setfillstyle(1,6);

  bar(100,140,95,200);

  bar(0,140,5,200);

  bar(100,140,105,200);

  bar(200,140,205,200);

  bar(300,140,305,200);

  bar(400,140,405,200);

  bar(500,140,505,200);

  bar(600,140,605,200);


  setfillstyle(1,7);                  //2footpath starts

  setcolor(7);

  rectangle(0,400,640,420);

  rectangle(80,400,40,420);

  bar(40,400,0,420);

  rectangle(0,400,40,420);

  bar(40,400,80,420);

  rectangle(80,400,120,420);

  bar(120,400,160,420);

  rectangle(160,400,200,420);

  bar(200,400,240,420);

  rectangle(240,400,280,420);

  bar(280,400,320,420);

  rectangle(320,400,360,420);

  bar(360,400,400,420);

  rectangle(400,400,440,420);

  bar(440,400,480,420);

  rectangle(480,400,520,420);

  bar(520,400,560,420);

  rectangle(560,400,600,420);

  bar(600,400,640,420);


  //2footpath ends

  setcolor(2);                              //Grass starts

  setfillstyle(9,2);

  line(0,421,640,421);

  floodfill(0,470,2);                       //Grass ends


  setcolor(15);

   outtextxy(50,30,"I FORGIVE");

   outtextxy(65,45,"BUT");

   outtextxy(50,60,"NEVER FORGOT");

   outtextxy(435,430,"Created by :- ");

   outtextxy(435,445,"COMPUTER SOFT SKILLS");

   outtextxy(435,460,"(ROHIT)");

}


void man2()

{

//---alive man

setcolor(15);

ellipse(400,300,0,360,7,9);

circle(398,298,1);

circle(403,298,1);

line(398,303,403,303);

line(399,310,399,333);

line(399,333,384,360);

line(399,333,416,360);

line(399,320,420,335);

line(399,320,390,335);

}



/*------------------ I HOPE YOU LIKE THIS PROGRAMMING ---------------------*/

/*_____________= LIKE =_______= SHARE =_________= SUBSCRIBE =_____________*/








Featured Post

Happy Republic Day Wish Using HTML and CSS | 26 January wish using HTML/CSS

 Happy Republic Day Wish Using HTML and CSS, 26 January wish using HTML/CSS <!-- WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL -----...

Popular Posts