-
Notifications
You must be signed in to change notification settings - Fork 161
/
birthdaywish.cpp
122 lines (88 loc) · 2.5 KB
/
birthdaywish.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# when using DEV C++ compiler :-
#include<windows.h>
#include<iostream>
#include<stdlib.h> //for system("cls");
using namespace std;
int main()
{
int i;
char h=3;
system("cls");
system("color f5"); //f->white background, 5->purple text
cout<<"\t\t\tFrom: Dharmendra Agrawal\n";
Sleep(2000);
cout<<"\t\t\tTo : Person's name\n\n";
Sleep(2000);
cout<<"\t\t";
for(i=0;i<42;i++)
cout<<"_";
cout<<"\n\n";
system("color f9"); //f->white background, 9->light blue text
Sleep(2000);
cout<<"\t\t\t\ti i i i i\n";
Sleep(2000);
cout<<"\t\t\t\ti i i i i\n";
Sleep(2000);
cout<<"\t\t\t __i_i_i_i_i__\n";
Sleep(2000);
cout<<"\t\t\t |"<<h<<" "<<h<<"|\n";
Sleep(2000);
cout<<"\t\t\t __| "<<h<<" dd/mm "<<h<<" |__\n";
Sleep(2000);
cout<<"\t\t\t | "<<h<<" "<<h<<" "<<h<<" "<<h<<" |\n";
Sleep(2000);
cout<<"\t\t\t__|"<<h<<" HAPPY "<<h<<" "<<h<<"|__\n";
Sleep(2000);
cout<<"\t\t | "<<h<<" "<<h<<" BIRTHDAY "<<h<<" |\n";
Sleep(2000);
cout<<"\t\t |"<<h<<" "<<h<<" "<<h<<" "<<h<<" "<<h<<" "<<h<<"|\n";
Sleep(2000);
cout<<"\t\t | "<<h<<" "<<h<<" "<<h<<" "<<h<<" N A M E "<<h<<" "<<h<<" "<<h<<" "<<h<<" |\n";
Sleep(2000);
cout<<"\t\t |_________________________|\n";
cout<<"\n\n\n\n\n";
system("pause");
return 0;
}
# When using TURBO C++ compiler :-
#include<iostream.h> //for I/O in dos based compiler's
#include<conio.h>
#include<dos.h> //for delay();
int main()
{
char h=3;
clrscr();
cout<<"\t\t\tFrom: Dharmendra Agrawal\n";
delay(2000);
cout<<"\t\t\tTo : Person's name\n\n";
delay(2000);
cout<<"\t\t";
for(int i=0;i<42;i++)
cout<<"_";
cout<<"\n\n";
delay(2000);
cout<<"\t\t\t\ti i i i i\n";
delay(2000);
cout<<"\t\t\t\ti i i i i\n";
delay(2000);
cout<<"\t\t\t __i_i_i_i_i__\n";
delay(2000);
cout<<"\t\t\t |"<<h<<" "<<h<<"|\n";
delay(2000);
cout<<"\t\t\t __| "<<h<<" dd/mm "<<h<<" |__\n";
delay(2000);
cout<<"\t\t\t | "<<h<<" "<<h<<" "<<h<<" "<<h<<" |\n";
delay(2000);
cout<<"\t\t\t__|"<<h<<" HAPPY "<<h<<" "<<h<<"|__\n";
delay(2000);
cout<<"\t\t | "<<h<<" "<<h<<" BIRTHDAY "<<h<<" |\n";
delay(2000);
cout<<"\t\t |"<<h<<" "<<h<<" "<<h<<" "<<h<<" "<<h<<" "<<h<<"|\n";
delay(2000);
cout<<"\t\t | "<<h<<" "<<h<<" "<<h<<" "<<h<<" N A M E "<<h<<" "<<h<<" "<<h<<" "<<h<<" |\n";
delay(2000);
cout<<"\t\t |_________________________|\n";
cout<<"\n\n\n\n\n";
getch();
return 0;
}