Play any tones in you CPU speakers:!




#include
#include
#include

void main()
{
#define sn sound;
clrscr();
const DELAY=500;
int c=0,A;;
char az[60],her,v=14;
// /int c=5;
cout<<"\n\tINPUT CHARACTERS IN SEQUENCE\n===>";
cin>>az;
// az[c]=az;
//c=1;
one:
//az[5]=az[c];

switch(az[c])
{
case 'a':
//cout<<"\n\tchar is"<<'a';
sound(100);
delay(DELAY);
nosound();
break;
case 'b':
//cout<sound(200);
delay(DELAY);
nosound();
break;
case 'c':
sound(300);
delay(DELAY);
nosound();
break;
case 'd':
sound(400);
delay(DELAY);
nosound();
break;
case 'e':
sound(500);
delay(DELAY);
nosound();
break;

. . . . .
. . . . .
. . . .
. . . .

break;
case '9':
sound(14400);
delay(DELAY);
nosound();
break;
case '0':
sound(15400);
delay(DELAY);
nosound();
break;


default:
goto end;
sound(100);
delay(DELAY);
nosound();

// cout<<"\n\t unknown charector"<break;
}
//A=A+1;
cout<
c=c+1;

if ( c<=53 )
goto one;
//clrscr();


end:


}