===========================================================================
CODING
#include<iostream.h>
#include<dos.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
void main()
{
struct time time;
struct date date;
int abcd,choice,day,mon,year,start,soundbeep,e,f,wait,PM,ordinate,abssisca,space,add,hint=0,a,b,c,d;
char str[80];
first();
second();
first();
clrscr();
cprintf("Enter Minutes for Alarm: ");
cscanf("%d",&wait);
cprintf("\r\nEnter Time for which Alarm should Beep(in seconds): ");
cscanf("%d",&soundbeep);
clrscr();
textcolor(5);
for(ordinate=2,abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
for(ordinate=3;ordinate<=23;ordinate++)
{
for(abssisca=2;abssisca<=80;abssisca=abssisca+78)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
}
for(ordinate=24,abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
gettime(&time);
e=time.ti_min;
f=time.ti_sec;
if(e==60)
e=-1;
for(start=1;b!=e+wait || c!=f;start++,PM=0)
{
gettime(&time);
getdate(&date);
day=date.da_day;
mon=date.da_mon;
year=date.da_year;
a=time.ti_hour;
if(a>12)
{
PM=1;
a=a-12;
}
b=time.ti_min;
c=time.ti_sec;
// if(c%2==0)
if(PM==1)
sprintf(str," =%.2d:%.2d:%.2d; PM;-=%.2d/%.2d/%.2d",a,b,c,day,mon,year);
else
sprintf(str," =%.2d:%.2d:%.2d; AM;-=%.2d/%.2d/%.2d",a,b,c,day,mon,year);
// else
// sprintf(str,"%d %d %d",a,b,c);
/* for(ordinate=3;ordinate<=14;ordinate++)
{
for(abssisca=3;abssisca<=79;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
} */
textcolor(10);
for(abssisca=4,ordinate=4,choice=0;str[choice]!='\0';choice++,abssisca=space+abssisca)
{
// gettime(&time);
// choice=time.ti_hour+48;
// if(add==2)
// choice=':';
space=7;
switch(str[choice])
{
case 65: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 97: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 66: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 98: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 67: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 99: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 68: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 100: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 69: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 101: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 70: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 102: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 71: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 103: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 72: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 104: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 73: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 105: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛÛ");
break;
case 74: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 106: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf(" Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 75: gotoxy(abssisca,ordinate);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 107: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û ");
break;
case 76: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 108: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 77: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 109: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û Û");
break;
case 78: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 110: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 79: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 111: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 80: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 112: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 81: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ Û");
break;
case 113: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ");
break;
case 82: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 114: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 83: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 115: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 84: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 116: gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ");
break;
case 85: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 117: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 86: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 118: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 87: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 119: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 88: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 120: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 89: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 121: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 90: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 122: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 48: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 49: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 50: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 51: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 52: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" Û");
break;
case 53: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 54: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 55: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 56: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 57: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case ' ': space=7;
break;
case 33: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '=': gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case '-': textcolor(3);
space=0;
break;
case ':': textcolor(10+BLINK);
gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
textcolor(10);
break;
case '.': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '/': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
break;
default: abssisca=4;
ordinate=7+ordinate;
space=0;
hint=1;
break;
}
if((ordinate>=18 && abssisca>=74) || (ordinate>18 && hint==1))
{
abssisca=4;
space=0;
ordinate=4;
hint=0;
textcolor(10);
}
else if(abssisca>=74)
{
abssisca=4;
space=0;
ordinate=7+ordinate;
}
}
delay(1000);
}
for(add=1;add<=200;add++)
{
if(add%2==0)
sound(600);
else
sound(800);
delay(25);
}
nosound();
}
CODING
#include<iostream.h>
#include<dos.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
void main()
{
struct time time;
struct date date;
int abcd,choice,day,mon,year,start,soundbeep,e,f,wait,PM,ordinate,abssisca,space,add,hint=0,a,b,c,d;
char str[80];
first();
second();
first();
clrscr();
cprintf("Enter Minutes for Alarm: ");
cscanf("%d",&wait);
cprintf("\r\nEnter Time for which Alarm should Beep(in seconds): ");
cscanf("%d",&soundbeep);
clrscr();
textcolor(5);
for(ordinate=2,abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
for(ordinate=3;ordinate<=23;ordinate++)
{
for(abssisca=2;abssisca<=80;abssisca=abssisca+78)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
}
for(ordinate=24,abssisca=2;abssisca<=80;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf("Û");
}
gettime(&time);
e=time.ti_min;
f=time.ti_sec;
if(e==60)
e=-1;
for(start=1;b!=e+wait || c!=f;start++,PM=0)
{
gettime(&time);
getdate(&date);
day=date.da_day;
mon=date.da_mon;
year=date.da_year;
a=time.ti_hour;
if(a>12)
{
PM=1;
a=a-12;
}
b=time.ti_min;
c=time.ti_sec;
// if(c%2==0)
if(PM==1)
sprintf(str," =%.2d:%.2d:%.2d; PM;-=%.2d/%.2d/%.2d",a,b,c,day,mon,year);
else
sprintf(str," =%.2d:%.2d:%.2d; AM;-=%.2d/%.2d/%.2d",a,b,c,day,mon,year);
// else
// sprintf(str,"%d %d %d",a,b,c);
/* for(ordinate=3;ordinate<=14;ordinate++)
{
for(abssisca=3;abssisca<=79;abssisca++)
{
gotoxy(abssisca,ordinate);
cprintf(" ");
}
} */
textcolor(10);
for(abssisca=4,ordinate=4,choice=0;str[choice]!='\0';choice++,abssisca=space+abssisca)
{
// gettime(&time);
// choice=time.ti_hour+48;
// if(add==2)
// choice=':';
space=7;
switch(str[choice])
{
case 65: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 97: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 66: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 98: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 67: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 99: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 68: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 100: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 69: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 101: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 70: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 102: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 71: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 103: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 72: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 104: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 73: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 105: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛÛ");
break;
case 74: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛ ");
break;
case 106: gotoxy(abssisca,ordinate);
cprintf(" Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf(" Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 75: gotoxy(abssisca,ordinate);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 107: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û ");
break;
case 76: gotoxy(abssisca,ordinate);
cprintf("Û ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 108: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 77: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 109: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û Û");
break;
case 78: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛ Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 110: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 79: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 111: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 80: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 112: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 81: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ Û");
break;
case 113: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ");
break;
case 82: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ÛÛ");
break;
case 114: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û ÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û ");
break;
case 83: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛ ");
break;
case 115: gotoxy(abssisca,ordinate);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 84: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 116: gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ");
break;
case 85: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 117: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 86: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 118: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("ÛÛ ÛÛ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛÛ ");
break;
case 87: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 119: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ÛÛ");
break;
case 88: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û Û ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 120: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("Û Û");
break;
case 89: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case 121: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 90: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 122: gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 48: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("Û Û");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 49: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û ");
gotoxy(abssisca,ordinate+2);
cprintf(" Û ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 50: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 51: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 52: gotoxy(abssisca,ordinate);
cprintf("Û Û");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf(" Û");
break;
case 53: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 54: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 55: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛ ");
break;
case 56: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf("Û Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case 57: gotoxy(abssisca,ordinate);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+1);
cprintf("Û Û");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" Û");
gotoxy(abssisca,ordinate+4);
cprintf("ÛÛÛÛÛ");
break;
case ' ': space=7;
break;
case 33: gotoxy(abssisca,ordinate);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '=': gotoxy(abssisca,ordinate);
cprintf(" Û ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" Û ");
break;
case '-': textcolor(3);
space=0;
break;
case ':': textcolor(10+BLINK);
gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ÛÛ ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
textcolor(10);
break;
case '.': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf(" ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ÛÛ ");
break;
case '/': gotoxy(abssisca,ordinate);
cprintf(" ");
gotoxy(abssisca,ordinate+1);
cprintf(" ");
gotoxy(abssisca,ordinate+2);
cprintf("ÛÛÛÛÛ");
gotoxy(abssisca,ordinate+3);
cprintf(" ");
gotoxy(abssisca,ordinate+4);
cprintf(" ");
break;
default: abssisca=4;
ordinate=7+ordinate;
space=0;
hint=1;
break;
}
if((ordinate>=18 && abssisca>=74) || (ordinate>18 && hint==1))
{
abssisca=4;
space=0;
ordinate=4;
hint=0;
textcolor(10);
}
else if(abssisca>=74)
{
abssisca=4;
space=0;
ordinate=7+ordinate;
}
}
delay(1000);
}
for(add=1;add<=200;add++)
{
if(add%2==0)
sound(600);
else
sound(800);
delay(25);
}
nosound();
}
===========================================================================
No comments:
Post a Comment