Tuesday 26 March 2013

How to Produce Beeps Of Different Frequency in C++

| |


Can you suppose that beeps of different frequency and duration be produced by C++ Program…Ya its possible to create beeps of different frequency through a c++ function and you would be amazed to hear that.
Program to Echo Beep of frequency 500Hz….

Syntax:
#include<windows.h> //A Header File used for windows programming
main()
{
Beep(500,1000); //Beep(frequency_in _hertz,Duration_in_ms)
}
Note:Take care of spelling, B should be capital in Beeps and it will work only in Windows.


How to Produce Beeps Of Different Frequency in C++


Related Posts Plugin for WordPress, Blogger...
Powered by Blogger.