#include iostream >
#include conio.h >
#include stdio.h >
#include stdlib.h >
#include windows.h >
using namespace std;
void clocks();
void reset();
void alrm();
void slp();
void welcome();
int main()
{int t;
system("pause");
system("cls");
welcome();
system("cls");
clocks();
return 0;
}
void clocks()
{
int i,j=0,k=0,x,y,z,l,m,n;
cout<<"do you want to set the clock";
cout<<"\n\n1. for set__\n2.for exit from application___\n3.hibernating clock __\n\n\t\tENTER THE CHOICE____: ";
cin>>x;
switch(x)
{
case 1:
{
cout<<"Enter your alrm :) ";
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\sexiest_romantic_mp3.mp3",NULL,NULL,SW_SHOW);
cout<<"\nHour:)";
cin>>x;
cout<<"\a";
if(x>24)
{
reset();
cout<<"\a \t";
}
cout<<"\nMinue:)";
cin>>y;
cout<<"\a";
if(y>59)
{
reset();
cout<<"\a \t";
}
cout<<"\nSec:)";
cin>>z;
cout<<"\a";
if(z>59)
{
reset();
cout<<"\a \t";
}
cout<<"hh \t";
cout<<"\a";
cout<<"mm \t";
cout<<"\a";
cout<<"s\n ";
cout<<"0\t0\t0\n\n\n";
cout<<"hour\t=";
cout<<"\a";
cin>>k;
if(k>25)
{
cout<<"hmm";
reset();
}
cout<<"minute\t=";
cout<<"\a";
cin>>j;
if(j>59)
{
reset();
}
cout<<"sec\t=";
cout<<"\a";
cin>>i;
system("cls");
cout << " sucses mr. sky\n";
cout<<"\a\a";
for(;i<61;i++)
{
Sleep(1000);
//cout << " \a";
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n";
cout<<" \t|**-----------------------------------**|\n";
cout<<"\t| hh\t";
cout<<" \tmm\t";
cout<<"\ts |\n";
cout<<"\t| ";
cout<=59)
{
j++;
// cout<=60)
{
k++;
j=0;
// cout<=25)
{
k=1;
l++;
}
if(j==y&&k==x&&i==z)
{
Sleep(300);
cout<<" \n\n\n\nalrm.......\a";
alrm();
}
}
case 2:
system("cls");
cout<<"\n\n\n\n\n\n\t\t\t\t EXIT";
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\Krissh_Rythem.mp3",NULL,NULL,SW_SHOW);
Sleep(4000);
exit(0);
}
case 3:
slp();
defult :
{
system("cls");
cout<< "\n\n\n\n\a \n\n\n\t\t\t\tENTER VALID";
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\text_alert.mp3",NULL,NULL,SW_SHOW);
Sleep(3000);
system("cls");
cout<<"LORDING.\a...";
Sleep(1000);
system("cls");
clocks();
getch();
//return 0;
}
}
}
void reset()
{
system("cls");
cout<< "\n\n\n\n\a \n\n\n\t\t\t\tENTER VALID";
Sleep(3000);
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\aaa.mp3",NULL,NULL,SW_SHOW);
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\aaa.mp3",NULL,NULL,SW_SHOW);
system("cls");
cout<<"LORDING.\a...";
Sleep(1000);
system("cls");
clocks();
}
void alrm()
{int s;
for(s=0;s<1;s++)
{
if(s%2==0)
{
//cout<<"\a\a\a";
// ShellExecute(NULL,NULL,"D:\\mr.sky\\alm tone\\Koyi milga.amr",NULL,NULL,SW_SHOW);
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\(R)Kash Ek Din Aisa Bhi.mp3",NULL,NULL,SW_SHOW);
Sleep(3000);
//system("pause");
}
}
}
void welcome()
{ int t;
cout<<" \n\n\n\n\n\n\n\t\t\t\tWELCOME";
Sleep(2000);
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\welcome.mp3",NULL,NULL,SW_SHOW);
}
void slp()
{
system("cls");
int i,j=0,k=0,x,y,z,l,m,n;
cout<<"please set time--";
cout<<"\n\n1. for set__sleeping tiMe:)\n\n\n\n\t\tENTER THE CHOICE__: ";
cin>>x;
switch(x)
{
case 1:
{
cout<<"Enter your switch off time'..'";
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\sexiest_romantic_mp3.mp3",NULL,NULL,SW_SHOW);
cout<<"\nHour:)";
cin>>x;
cout<<"\a";
if(x>24)
{
reset();
cout<<"\a \t";
}
cout<<"\nMinue:)";
cin>>y;
cout<<"\a";
if(y>59)
{
reset();
cout<<"\a \t";
}
cout<<"\nSec:)";
cin>>z;
cout<<"\a";
if(z>59)
{
reset();
cout<<"\a \t";
}
cout<<"hh \t";
cout<<"\a";
cout<<"mm \t";
cout<<"\a";
cout<<"s\n ";
cout<<"0\t0\t0\n\n\n";
cout<<"hour\t=";
cout<<"\a";
cin>>k;
if(k>25)
{
cout<<"hmm";
reset();
}
cout<<"minute\t=";
cout<<"\a";
cin>>j;
if(j>59)
{
reset();
}
cout<<"sec\t=";
cout<<"\a";
cin>>i;
system("cls");
cout << " sucses mr. sky\n";
cout<<"\a\a";
for(;i<61;i++)
{
Sleep(1000);
//cout << " \a";
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n";
cout<<" \t|**-----------------------------------**|\n";
cout<<"\t| hh\t";
cout<<" \tmm\t";
cout<<"\ts |\n";
cout<<"\t| ";
cout<=59)
{
j++;
// cout<=60)
{
k++;
j=0;
// cout<=25)
{
k=1;
l++;
}
if(j==y&&k==x&&i==z)
{
Sleep(300);
cout<<" \n\n\n\nalrm.......\a";
ShellExecute(NULL,NULL,"C:\\mr.sky_2.0\\alm tone\\text_alert.mp3",NULL,NULL,SW_SHOW);
ShellExecute(NULL,NULL,"C:\\MR.SKY_2.0\\DEFULT SOFT\\SYSTEM V.exe",NULL,NULL,SW_SHOW);
exit(0);
}
}
}
}
}
/*best use in dev c++. In windows only*/