Ads

HAPPY EID C++ GRAPHICS PROGRAMMING | EID AL FITR WISHES IN C | RAMZAN ID WISHES IN C++ | EID-UL-FITAR PROGRAMMING IN C | C++ PROGRAMMING

 


/*********************    Happy Eid  al-Fitr     **************************/

/*********** WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL ****************/

/****************----- C++ Program to wish Ramzan Id ---------*************/


#include<graphics.h>

#include<stdio.h>

#include<string.h>

#include<dos.h>

#include<stdlib.h>

#include<conio.h>

#define ScreenWidth getmaxx()

#define ScreenHeight getmaxy()

#define GroundY ScreenHeight*0.75


void Rain(int i)

{

int rx,ry;

for(i=0;i<400;i++)

{

rx=rand() % ScreenWidth;

ry=rand() % ScreenHeight;


if(ry<GroundY)line(rx-10,ry-10,rx,ry);

}

}

void main()

{

int gd = DETECT, gm;

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


while(!kbhit())

{

//___MOON

for(int x=0;x<20;x++)

{

setcolor(x);

arc(135,190,87,335,110);

arc(165,173,99,314,95);


//---- STAR

line(150,170,200,170);

line(150,170,170,120);

line(170,120,200,170);


line(170,190,145,135);

line(145,135,200,135);

line(200,135,170,190);


settextstyle(BOLD_FONT,HORIZ_DIR,1);

setcolor(11);

outtextxy(90,5,"Happy Eid By ROHIT TECH STUDY");


setcolor(10);

settextstyle(TRIPLEX_SCR_FONT,HORIZ_DIR,4);

outtextxy(255,130,"\" EID-UL-FITAR \"");


setcolor(14);

outtextxy(285,180,"\" MUBARAK \"");


settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);

setcolor(13);

outtextxy(15,340,"MAY THIS BLESSING OF ALLAH FILL YOUR LIFE WITH PLEASURE");

outtextxy(15,365,"AND OPEN ALL THE DOOR OF SUCCESS NOW AND ALWAYS.");


setcolor(14);

outtextxy(15,410,"Remember me in your prayers. Eid Mubarak !");

gotoxy(20,10);


setcolor(WHITE);

Rain(x);

delay(95);

cleardevice();

 }

 }


 getch();

 closegraph();

}



/*__________ LIKE __________ SHARE __________ SUBSCRIBE _________________*/


Download source code

Post a Comment

0 Comments