#include
#include
#include
const del=500,a=3000,b=2000,c=4000,d=1000,e=5000;
void one()
{
sound(a); //4000
delay(del);
nosound();
}
void two()
{
sound(b); //3000
delay(del);
nosound();
}
void three()
{
sound(c); //4500
delay(del);
nosound();
}
void four()
{
sound(d); //6000
delay(del);
nosound();
}
void five()
{
sound(e);
delay(del);
nosound();
}
void snd()
{
//clrscr();
one();
two();
three();
four();
five();
three();
two();
one();
}
void main()
{
snd();
snd();
snd();
} //compile with Borland turbo c++ 3.0
#include
#include
const del=500,a=3000,b=2000,c=4000,d=1000,e=5000;
void one()
{
sound(a); //4000
delay(del);
nosound();
}
void two()
{
sound(b); //3000
delay(del);
nosound();
}
void three()
{
sound(c); //4500
delay(del);
nosound();
}
void four()
{
sound(d); //6000
delay(del);
nosound();
}
void five()
{
sound(e);
delay(del);
nosound();
}
void snd()
{
//clrscr();
one();
two();
three();
four();
five();
three();
two();
one();
}
void main()
{
snd();
snd();
snd();
} //compile with Borland turbo c++ 3.0
No comments:
Post a Comment