Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
how to create c program to generate sound from sound blaster speaker or in stereo speaker in computer?
using c & c++ code
1 Answer
- ZarnLv 71 decade agoFavorite Answer
You clearly need to work on your Google skills - this question is easily answered if you tried doing that.
http://www.dreamincode.net/forums/topic/18352-play...
http://www.codeproject.com/KB/audio-video/SoundGen...
http://www.csounds.com/node/199
http://www.daniweb.com/forums/thread15252.html
http://www.daniweb.com/code/snippet216360.html
#include <iostream>
#include <windows.h> // WinApi header
using namespace std;
int main()
{
Beep(523,500); // 523 hertz (C5) for 500 milliseconds
Beep(587,500);
Beep(659,500);
Beep(698,500);
Beep(784,500);
cin.get(); // wait
return 0;
}