How programmer wish happy new year by programming knowledge ? C program to wish happy new year Hello friends Happy New Year to all of you. And on this occasion of New Year, we have prepared a simple mini project using C programming language. Whose code you can download it by clicking on the download link given below. Download link
Boy and girl romantic scene code
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<graphics.h>
void sticks();
void background();
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
sticks();
background();
getch();
closegraph();
}
void sticks()
{
//boy
circle(260,300,10);
line(260,310,260,350);
line(260,320,250,350);
line(260,320,275,348);
line(260,350,270,400);
line(260,350,250,400);
//girl
circle(290,300,10);
line(290,310,290,350);
line(290,320,274,346);
line(290,320,300,350);
line(290,350,300,400);
line(290,350,280,400);
line(0,400,700,400);
}
void background()
{
//moon
setfillstyle(SOLID_FILL,15);
circle(370,130,20);
floodfill(370,130,15);
// ston
arc(150,400,0,180,10);
//graas
line(135,400,140,360);
line(125,400,140,360);
line(130,400,160,360);
line(150,390,160,360);
line(165,400,147,360);
line(155,400,147,360);
//star
outtextxy(300,150,",");
outtextxy(20,150,",");
outtextxy(100,250,",");
outtextxy(230,170,",");
outtextxy(170,98,",");
outtextxy(400,230,",");
outtextxy(500,260,",");
outtextxy(470,170,",");
outtextxy(380,40,",");
outtextxy(192,230,",");
outtextxy(90,20,",");
outtextxy(210,15,",");
outtextxy(500,10,",");
}
Comments
Post a Comment