为什么提示这样的错误
wbaxx 2013-09-01 10:22:38 #include <stdio.h>
#include <dos.h>
void main()
{
unsigned int freq; /* 指定的频率 */
do {
printf("Enter frequency: "); /* 显示键入频率的提示信息 */
scanf("%d",&freq); /* 接受键入的频率 */
if ( freq) { /* 频率不应为0 */
sound(freq); /* 开始发指定频率的声音 */
delay(1000); /* 延时一秒钟 */
nosound(); /* 关闭声音 */
}
} while ( freq ); /* 如指定的频率为0,则结束 */
}
F:\C++\sound\sound.cpp(12) : error C2065: 'sound' : undeclared identifier
F:\C++\sound\sound.cpp(13) : error C2065: 'delay' : undeclared identifier
F:\C++\sound\sound.cpp(14) : error C2065: 'nosound' : undeclared identifier