Best program for Birthday in C++ also source code

Image result for c++ happy birthday

#include<windows.h>
#include<iostream>
#include <mmsystem.h>
using namespace std;

int main()
{

int a;
int i;
char h = 3;
cout << "\t\t\tTo  : Name\n\n\a";
Sleep(1000);
cout << "\t\t";
for (i = 0; i<42; i++)
cout << "_";
cout << "\n\n\a";

Sleep(1000);
cout << "\t\t\t\ti i i i i\n\a\a";

Sleep(1000);
cout << "\t\t\t\ti i i i i\n\a\a\a";

Sleep(1000);
cout << "\t\t\t      __i_i_i_i_i__\n\a";

Sleep(1000);
cout << "\t\t\t     |" << h << "           " << h << "|\n\a";

Sleep(1000);
cout << "\t\t\t   __| " << h << "  date  " << h << " |__\n\a";

Sleep(1000);
cout << "\t\t\t  | " << h << "   " << h << "       " << h << "   " << h << " |\n\a";

Sleep(1000);
cout << "\t\t\t__|" << h << "   HAPPY     " << h << "   " << h << "|__\n\a";

Sleep(1000);
cout << "\t\t       | " << h << "   " << h << "     BIRTHDAY    " << h << " |\n\a";

Sleep(1000);
cout << "\t\t       |" << h << "  " << h << "     " << h << "    " << h << "     " << h << "   " << h << "|\n\a";


Sleep(1000);
cout << "\t\t       | " << h << " " << h << " " << h << " " << h << "Name" << h << " " << h << " " << h << " " << h << " |\n\a";

Sleep(1000);
cout << "\t\t       |_________________________|\n\a";

cout << "\n\n\n\n\n";
cout << "please press A and enter please :) :)\a";
cout << "once again \a";
cin >> a;


cout << endl;
Sleep(1000);
cout << "\t\t\a";
for (i = 0; i<42; i++)
cout << "_\a";
cout << "\n\n\a";

Sleep(1000);
cout << "\t\t\t\ti i i i i\n\a";

Sleep(1000);
cout << "\t\t\t\ti i i i i\n\a";

Sleep(1000);
cout << "\t\t\t      __i_i_i_i_i__\n\a";

Sleep(1000);
cout << "\t\t\t     |" << h << "           " << h << "|\n\a";

Sleep(1000);
cout << "\t\t\t   __| " << h << "  dd/mm  " << h << " |__\n\a";

Sleep(1000);
cout << "\t\t\t  | " << h << "   " << h << "       " << h << "   " << h << " |\n\a";

Sleep(1000);
cout << "\t\t\t__|" << h << "   HAPPY     " << h << "   " << h << "|__\n\a";

Sleep(1000);
cout << "\t\t       | " << h << "   " << h << "     BIRTHDAY    " << h << " |\n\a";

Sleep(1000);
cout << "\t\t       |" << h << "  " << h << "     " << h << "    " << h << "     " << h << "   " << h << "|\n\a";


Sleep(1000);
cout << "\t\t       | " << h << " " << h << " " << h << " " << h << "Name" << h << " " << h << " " << h << " " << h << " |\n\a";

Sleep(1000);
cout << "\t\t       |_________________________|\n\a";
for (int a = 1; a < 50; a++)
{
cout << "Happy Birthday dear" << endl << endl;
Sleep(100);
}
system("pause");
return 0;
}
First

5 comments

Write comments
SEEDER
AUTHOR
15 December 2017 at 05:34 delete

getting error

/home/pspk/Desktop/C++/11-12-2017/Functions/a.cpp|2|fatal error: windows.h: No such file or directory|

Reply
avatar
BRAMALKA
AUTHOR
26 December 2017 at 20:05 delete

how can my turboc++ cant include windows.h and mmsystem.h?

Reply
avatar
Unknown
AUTHOR
27 September 2018 at 07:13 delete

why char h = 3; is display [?] [?] [?] when it is run
sry for my grammer

Reply
avatar