===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<string.h>
void main()
{
clrscr();
int sec,hr,min,date,year,i,j,k,x,y,month,SEC=0,MIN=0,HR=0,DATE=0,MONTH=0,YEAR=0,mark=0;
char a[80],AM[10],mon[30],prefix[10],am[10];
textcolor(15);
struct time t;
struct date d;
goto label2;
label:
clrscr();
textcolor(15);
getch();
gotoxy(1,1);
cprintf("Enter Time and Date for Reminder: ");
gotoxy(2,3);
cprintf("Time: hh : mm : ss [--]{AM\/PM}");
gotoxy(10,3);
cscanf("%d",&HR);
gotoxy(15,3);
cscanf("%d",&MIN);
gotoxy(20,3);
cscanf("%d",&SEC);
gotoxy(24,3);
gets(am);
gotoxy(2,5);
cprintf("Date: dd / mm / yyyy");
gotoxy(10,5);
cscanf("%d",&DATE);
gotoxy(15,5);
cscanf("%d",&MONTH);
gotoxy(20,5);
cscanf("%d",&YEAR);
mark=1;
label2:
clrscr();
for(i=0;;i++)
{
if(mark==0)
{
gotoxy(22,1);
textcolor(RED);
textbackground(CYAN);
cprintf("PRESS ANY KEY TO SET A REMINDER.....");
textbackground(0);
if(kbhit())
goto label;
}
gettime(&t);
getdate(&d);
sec=t.ti_sec;
min=t.ti_min;
hr=t.ti_hour;
if(hr<12)
{
sprintf(AM,"AM\0");
}
else
{
hr-=12;
sprintf(AM,"PM\0");
}
date=d.da_day;
month=d.da_mon;
switch(month)
{
case 1: strcpy(mon,"JAN");
break;
case 2: strcpy(mon,"FEB");
break;
case 3: strcpy(mon,"MAR");
break;
case 4: strcpy(mon,"APR");
break;
case 5: strcpy(mon,"MAY");
break;
case 6: strcpy(mon,"JUN");
break;
case 7: strcpy(mon,"JUL");
break;
case 8: strcpy(mon,"AUG");
break;
case 9: strcpy(mon,"SEP");
break;
case 10: strcpy(mon,"OCT");
break;
case 11: strcpy(mon,"NOV");
break;
case 12: strcpy(mon,"DEC");
break;
}
switch(date)
{
case 1: strcpy(prefix,"s");
break;
case 2: strcpy(prefix,"n");
break;
case 3: strcpy(prefix,"r");
break;
default: strcpy(prefix,"t");
break;
}
year=d.da_year;
sprintf(a,"[%.2d:%.2d:%.2d\n ( '%s\n{.'%.2d%s %s\n '%d",hr,min,sec,AM,date,prefix,mon,year);
gotoxy(1,1);
for(j=0,x=8,y=2;a[j]!='\0';j++,x+=8)
{
switch(a[j])
{
case '1':
gotoxy(x,y);
cprintf("ÉÍÍ» ");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf("ÍÍÍÊÍÍÍ");
break;
case '2':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf("ÉÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '3':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" ÌÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '4':
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" Ê");
break;
case '5':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '6':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '7':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" º");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" º ");
break;
case '8':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '9':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '0':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case ':':
//x-=3;
textcolor(GREEN+128);
x+=3;
gotoxy(x,y);
cprintf("ÉÍ»");
gotoxy(x,y+1);
cprintf("Èͼ");
gotoxy(x,y+2);
cprintf(" ");
gotoxy(x,y+3);
cprintf("ÉÍ»");
gotoxy(x,y+4);
cprintf("Èͼ");
textcolor(YELLOW);
x-=1;
break;
case '\'':
x+=2;
break;
case 'A':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("Ê Ê");
break;
case 'E':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ» ");
gotoxy(x,y+1);
cprintf("º ¼");
gotoxy(x,y+2);
cprintf("ÌÍ͹ ");
gotoxy(x,y+3);
cprintf("º »");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ ");
break;
case 'M':
// x+=1;
gotoxy(x,y);
cprintf("É» É»");
gotoxy(x,y+1);
cprintf("ºÈ» ɼº");
gotoxy(x,y+2);
cprintf("º È˼ º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("Ê Ê");
break;
case 'N':
// x+=1;
gotoxy(x,y);
cprintf("É» Ë");
gotoxy(x,y+1);
cprintf("ºÈ» º");
gotoxy(x,y+2);
cprintf("º ÈÍ» º");
gotoxy(x,y+3);
cprintf("º È»º");
gotoxy(x,y+4);
cprintf("Ê È¼");
break;
case 'J':
// x+=1;
gotoxy(x,y);
cprintf("ÉÍÍÍËÍ»");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf("É º ");
gotoxy(x,y+4);
cprintf("ÈÍÍͼ ");
break;
case 'P':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("Ê ");
break;
case 'F':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ¼");
gotoxy(x,y+2);
cprintf("ÌÍ͹ ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("Ê ");
break;
case 'B':
gotoxy(x,y);
cprintf("ÍËÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º ɼ");
gotoxy(x,y+2);
cprintf(" ÇÄÄĶ ");
gotoxy(x,y+3);
cprintf(" º È»");
gotoxy(x,y+4);
cprintf("ÍÊÍÍÍͼ");
break;
case 'O':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'U':
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'Y':
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("Ȼ ɼ");
gotoxy(x,y+2);
cprintf(" Ȼ ɼ ");
gotoxy(x,y+3);
cprintf(" È˼ ");
gotoxy(x,y+4);
cprintf(" Ê ");
break;
case 'L':
gotoxy(x,y);
cprintf("Ë ");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("º ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'R':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍËÍÍͼ");
gotoxy(x,y+3);
cprintf("º ÈÍÍ» ");
gotoxy(x,y+4);
cprintf("Ê Ê ");
break;
case 'C':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ¼");
gotoxy(x,y+2);
cprintf("º ");
gotoxy(x,y+3);
cprintf("º »");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'T':
gotoxy(x,y);
cprintf("ÉÍÍËÍÍ»");
gotoxy(x,y+1);
cprintf("È º ¼");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf(" Ê ");
break;
case 's':
gotoxy(x,y);
cprintf("ÉÍ» ÉË»");
gotoxy(x,y+1);
cprintf("ÈÍ» º ");
gotoxy(x,y+2);
cprintf("Èͼ Ê ");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case 'n':
gotoxy(x,y);
cprintf("É» Ë Ë»");
gotoxy(x,y+1);
cprintf("ºÈ»º ºº");
gotoxy(x,y+2);
cprintf("Ê È¼ ʼ");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case 'r':
gotoxy(x,y);
cprintf("ÉÍÍ» Ë»");
gotoxy(x,y+1);
cprintf("ÌÍ˼ ºº");
gotoxy(x,y+2);
cprintf("Ê ÈÍ Ê¼");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case 't':
gotoxy(x,y);
cprintf("ÉË» Ë Ë");
gotoxy(x,y+1);
cprintf(" º Ì͹");
gotoxy(x,y+2);
cprintf(" Ê Ê Ê");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case '.': x-=16;
break;
case '[': textcolor(YELLOW);
x-=8;
break;
case '(': textcolor(GREEN);
x-=8;
break;
case '{': textcolor(CYAN);
x-=8;
break;
case '\n':
y+=6;
x=0;
break;
// case ' ': break;
/* default:
gotoxy(x,y);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+1);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+2);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+3);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+4);
cprintf("ÛÛÛÛÛÛÛ");
break; */
}
}
if(date==DATE && year==YEAR && month==MONTH && sec==SEC && min==MIN && hr==HR && strcmpi(AM,am)==0)
{
for(k=0;k<=200;k++)
{
sound(k*10);
delay(100);
nosound();
}
getch();
exit(0);
}
delay(1000);
}
getch();
}
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<string.h>
void main()
{
clrscr();
int sec,hr,min,date,year,i,j,k,x,y,month,SEC=0,MIN=0,HR=0,DATE=0,MONTH=0,YEAR=0,mark=0;
char a[80],AM[10],mon[30],prefix[10],am[10];
textcolor(15);
struct time t;
struct date d;
goto label2;
label:
clrscr();
textcolor(15);
getch();
gotoxy(1,1);
cprintf("Enter Time and Date for Reminder: ");
gotoxy(2,3);
cprintf("Time: hh : mm : ss [--]{AM\/PM}");
gotoxy(10,3);
cscanf("%d",&HR);
gotoxy(15,3);
cscanf("%d",&MIN);
gotoxy(20,3);
cscanf("%d",&SEC);
gotoxy(24,3);
gets(am);
gotoxy(2,5);
cprintf("Date: dd / mm / yyyy");
gotoxy(10,5);
cscanf("%d",&DATE);
gotoxy(15,5);
cscanf("%d",&MONTH);
gotoxy(20,5);
cscanf("%d",&YEAR);
mark=1;
label2:
clrscr();
for(i=0;;i++)
{
if(mark==0)
{
gotoxy(22,1);
textcolor(RED);
textbackground(CYAN);
cprintf("PRESS ANY KEY TO SET A REMINDER.....");
textbackground(0);
if(kbhit())
goto label;
}
gettime(&t);
getdate(&d);
sec=t.ti_sec;
min=t.ti_min;
hr=t.ti_hour;
if(hr<12)
{
sprintf(AM,"AM\0");
}
else
{
hr-=12;
sprintf(AM,"PM\0");
}
date=d.da_day;
month=d.da_mon;
switch(month)
{
case 1: strcpy(mon,"JAN");
break;
case 2: strcpy(mon,"FEB");
break;
case 3: strcpy(mon,"MAR");
break;
case 4: strcpy(mon,"APR");
break;
case 5: strcpy(mon,"MAY");
break;
case 6: strcpy(mon,"JUN");
break;
case 7: strcpy(mon,"JUL");
break;
case 8: strcpy(mon,"AUG");
break;
case 9: strcpy(mon,"SEP");
break;
case 10: strcpy(mon,"OCT");
break;
case 11: strcpy(mon,"NOV");
break;
case 12: strcpy(mon,"DEC");
break;
}
switch(date)
{
case 1: strcpy(prefix,"s");
break;
case 2: strcpy(prefix,"n");
break;
case 3: strcpy(prefix,"r");
break;
default: strcpy(prefix,"t");
break;
}
year=d.da_year;
sprintf(a,"[%.2d:%.2d:%.2d\n ( '%s\n{.'%.2d%s %s\n '%d",hr,min,sec,AM,date,prefix,mon,year);
gotoxy(1,1);
for(j=0,x=8,y=2;a[j]!='\0';j++,x+=8)
{
switch(a[j])
{
case '1':
gotoxy(x,y);
cprintf("ÉÍÍ» ");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf("ÍÍÍÊÍÍÍ");
break;
case '2':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf("ÉÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '3':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" ÌÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '4':
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" Ê");
break;
case '5':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '6':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍÍ»");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '7':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º");
gotoxy(x,y+2);
cprintf(" º");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf(" º ");
break;
case '8':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '9':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÈÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf(" º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case '0':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case ':':
//x-=3;
textcolor(GREEN+128);
x+=3;
gotoxy(x,y);
cprintf("ÉÍ»");
gotoxy(x,y+1);
cprintf("Èͼ");
gotoxy(x,y+2);
cprintf(" ");
gotoxy(x,y+3);
cprintf("ÉÍ»");
gotoxy(x,y+4);
cprintf("Èͼ");
textcolor(YELLOW);
x-=1;
break;
case '\'':
x+=2;
break;
case 'A':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍ͹");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("Ê Ê");
break;
case 'E':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ» ");
gotoxy(x,y+1);
cprintf("º ¼");
gotoxy(x,y+2);
cprintf("ÌÍ͹ ");
gotoxy(x,y+3);
cprintf("º »");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ ");
break;
case 'M':
// x+=1;
gotoxy(x,y);
cprintf("É» É»");
gotoxy(x,y+1);
cprintf("ºÈ» ɼº");
gotoxy(x,y+2);
cprintf("º È˼ º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("Ê Ê");
break;
case 'N':
// x+=1;
gotoxy(x,y);
cprintf("É» Ë");
gotoxy(x,y+1);
cprintf("ºÈ» º");
gotoxy(x,y+2);
cprintf("º ÈÍ» º");
gotoxy(x,y+3);
cprintf("º È»º");
gotoxy(x,y+4);
cprintf("Ê È¼");
break;
case 'J':
// x+=1;
gotoxy(x,y);
cprintf("ÉÍÍÍËÍ»");
gotoxy(x,y+1);
cprintf(" º ");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf("É º ");
gotoxy(x,y+4);
cprintf("ÈÍÍͼ ");
break;
case 'P':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍÍÍÍͼ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("Ê ");
break;
case 'F':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ¼");
gotoxy(x,y+2);
cprintf("ÌÍ͹ ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("Ê ");
break;
case 'B':
gotoxy(x,y);
cprintf("ÍËÍÍÍÍ»");
gotoxy(x,y+1);
cprintf(" º ɼ");
gotoxy(x,y+2);
cprintf(" ÇÄÄĶ ");
gotoxy(x,y+3);
cprintf(" º È»");
gotoxy(x,y+4);
cprintf("ÍÊÍÍÍͼ");
break;
case 'O':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'U':
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("º º");
gotoxy(x,y+3);
cprintf("º º");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'Y':
gotoxy(x,y);
cprintf("Ë Ë");
gotoxy(x,y+1);
cprintf("Ȼ ɼ");
gotoxy(x,y+2);
cprintf(" Ȼ ɼ ");
gotoxy(x,y+3);
cprintf(" È˼ ");
gotoxy(x,y+4);
cprintf(" Ê ");
break;
case 'L':
gotoxy(x,y);
cprintf("Ë ");
gotoxy(x,y+1);
cprintf("º ");
gotoxy(x,y+2);
cprintf("º ");
gotoxy(x,y+3);
cprintf("º ");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'R':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º º");
gotoxy(x,y+2);
cprintf("ÌÍËÍÍͼ");
gotoxy(x,y+3);
cprintf("º ÈÍÍ» ");
gotoxy(x,y+4);
cprintf("Ê Ê ");
break;
case 'C':
gotoxy(x,y);
cprintf("ÉÍÍÍÍÍ»");
gotoxy(x,y+1);
cprintf("º ¼");
gotoxy(x,y+2);
cprintf("º ");
gotoxy(x,y+3);
cprintf("º »");
gotoxy(x,y+4);
cprintf("ÈÍÍÍÍͼ");
break;
case 'T':
gotoxy(x,y);
cprintf("ÉÍÍËÍÍ»");
gotoxy(x,y+1);
cprintf("È º ¼");
gotoxy(x,y+2);
cprintf(" º ");
gotoxy(x,y+3);
cprintf(" º ");
gotoxy(x,y+4);
cprintf(" Ê ");
break;
case 's':
gotoxy(x,y);
cprintf("ÉÍ» ÉË»");
gotoxy(x,y+1);
cprintf("ÈÍ» º ");
gotoxy(x,y+2);
cprintf("Èͼ Ê ");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case 'n':
gotoxy(x,y);
cprintf("É» Ë Ë»");
gotoxy(x,y+1);
cprintf("ºÈ»º ºº");
gotoxy(x,y+2);
cprintf("Ê È¼ ʼ");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case 'r':
gotoxy(x,y);
cprintf("ÉÍÍ» Ë»");
gotoxy(x,y+1);
cprintf("ÌÍ˼ ºº");
gotoxy(x,y+2);
cprintf("Ê ÈÍ Ê¼");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case 't':
gotoxy(x,y);
cprintf("ÉË» Ë Ë");
gotoxy(x,y+1);
cprintf(" º Ì͹");
gotoxy(x,y+2);
cprintf(" Ê Ê Ê");
gotoxy(x,y+3);
cprintf(" ");
gotoxy(x,y+4);
cprintf(" ");
break;
case '.': x-=16;
break;
case '[': textcolor(YELLOW);
x-=8;
break;
case '(': textcolor(GREEN);
x-=8;
break;
case '{': textcolor(CYAN);
x-=8;
break;
case '\n':
y+=6;
x=0;
break;
// case ' ': break;
/* default:
gotoxy(x,y);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+1);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+2);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+3);
cprintf("ÛÛÛÛÛÛÛ");
gotoxy(x,y+4);
cprintf("ÛÛÛÛÛÛÛ");
break; */
}
}
if(date==DATE && year==YEAR && month==MONTH && sec==SEC && min==MIN && hr==HR && strcmpi(AM,am)==0)
{
for(k=0;k<=200;k++)
{
sound(k*10);
delay(100);
nosound();
}
getch();
exit(0);
}
delay(1000);
}
getch();
}
===========================================================================
No comments:
Post a Comment