Playing Music in C:
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
clrscr();
int count=50;
while(count--){
sound(10*random(100));
delay(75);
nosound();
textattr(random(16)+'a'+BLINK) ;
cprintf("*");}
}
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
clrscr();
int count=50;
while(count--){
sound(10*random(100));
delay(75);
nosound();
textattr(random(16)+'a'+BLINK)
cprintf("*");}
}
No comments:
Post a Comment