Zet*_*tor 1 c++ eclipse windows mingw eclipse-cdt
我正在尝试beep()在CDT中使用windows.h的C++ 函数.但它不编译并抛出此错误:
'beep'未在此范围内声明
函数'beep'无法解析以下是代码:
/*
* blahblah.cpp
*
* Created on: Jan 28, 2016
*
*/
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
beep(523, 500);
//cin.get();
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我在64位Win7机器上使用MinGW
谢谢