Answers for "how to make sound in c++"

C++
-1

how to make sound in c++

//Function Beep, part of windows.h library, first parameter is frequency
//in hertz, second parameter is time in miliseconds
#include<iostream>
#include<windows.h>
using namespace std;

int main()
{
  Beep(200,300);
}
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language