Friday 24 May 2013

Producing 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 //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.

No comments:

Post a Comment

A Beginner's Guide to Android Rooting | Easy Reference | SecurityHunk

A Beginner's Guide to Android Rooting | Easy Reference | SecurityHunk