I'm trying to use C++ beep()
function of windows.h in CDT. But it doesn't compile and throws this error:
'beep' was not declared in this scope
Function 'beep' could not be resolved Here is the code:
/*
* blahblah.cpp
*
* Created on: Jan 28, 2016
*
*/
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
beep(523, 500);
//cin.get();
return 0;
}
I'm using MinGW on a 64 bit Win7 machine
Thanks
The Beep
function begins with a capital B
. C++ is a case-sensitive language.