Program Displays Colourful Characters in Text Mode and Initialises speaker & Plays Sound of Random Frequencies.
#include<stdio.h> #include<dos.h> #include<conio.h> #include<stdlib.h> void main() { int count=100; clrscr(); while(count--) { sound(10*random(100)); delay(75); nosound(); textattr(random(16)+'a'+BLINK); cprintf("*"); } }
Technorati Tags: Sound in C Language
Comments
Post a Comment