How to do Love Proposal through Programming ?
Here a program to do love proposal through C programming...
*Program is developed by kishan verma
*/#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
void heart();
clrscr();
int gd=DETECT,gm=0,x,y;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setbkcolor(WHITE);
for(int i=-80;i<=200;i++)
{
setcolor(0+i);
line(0+i,0+i,80+i,80+i);
line(0+i,1+i,80+i,81+i);
line(70+i,47+i,80+i,80+i);
line(45+i,70+i,80+i,81+i);
delay(40);
clearviewport();
}
setcolor(RED);
heart();
line(0+i,0+i,80+i,80+i);
line(0+i,1+i,80+i,81+i);
line(70+i,47+i,80+i,80+i);
line(45+i,70+i,80+i,81+i);
getch();
}
void heart()
{
ellipse(getmaxx()/2,getmaxy()/2,20,212,50,50);
ellipse(411,240,330,155,50,50);
line(276,265,370,380);
line(370,380,454,265);
line(getmaxx()/2+50,50,getmaxx()/2+50,140);
line(getmaxx()/2+30,50,getmaxx()/2+70,50);
line(getmaxx()/2+30,140,getmaxx()/2+70,140);
line(getmaxx()/2+20,380,getmaxx()/2+20,460);
line(getmaxx()/2+80,380,getmaxx()/2+80,460);
line(getmaxx()/2+20,460,getmaxx()/2+80,460);
}
Output :- Watch this video for output...
Program to do love proposal through Java Code...
//Java File
// Program for love proposal by Kishan Verma
import java.awt.*;
import java.applet.*;
public class Heart extends Applet
{
public void init()
{
setForeground(Color.red);
}
public void paint(Graphics g)
{
//for I
g.drawLine(450,50,550,50);
g.drawLine(500,50,500,200);
g.drawLine(450,200,550,200);
//for heart
g.drawArc(380,220,135,170,40,180);
g.drawArc(478,225,140,180,136,-165);
g.drawLine(395,360,500,490);
g.drawLine(500,490,608,358);
//for U
g.drawLine(450,520,450,660);
g.drawLine(450,660,540,660);
g.drawLine(540,660,540,520);
}
}
HTML File
<!-- HTML FILE -->
<html>
<head>
<title>Love Proposal</title>
</head>
<body>
<applet code="Heart"width="1000"height="800"></applet>
</body>
</html>
<head>
<title>Love Proposal</title>
</head>
<body>
<applet code="Heart"width="1000"height="800"></applet>
</body>
</html>
It's good way to praposal for girl becoz every girl want to prapose by different way by her boyfrnd
ReplyDelete