#include "stdafx.h"
#include<dos.h>
#include<stdio.h>
void mian(){
int fMin=20,fMax=16000;
int fDis,i,j;
float x=1,k;
fDis=fMax-fMin;
for(j=1;;j++){
printf("Please input The value of k(1-4.0)\n");
printf("If you want to quit, Please input:0\n");

scanf("%f",&k);
if (k==0)break ;
for(i=1;i<100;i++)
x=k*x*(1-x);
for(i=1;i<100;i++){
x=k*x*(1-x);
sound(x*fDis+20);
 delay(1000);} 

nosound();}} 


sound' : undeclared identifier
G:\MSDev98\MyProjects\222\222.cpp(23) : error C2065: 'delay' : undeclared identifier
G:\MSDev98\MyProjects\222\222.cpp(24) : error C2065: 'nosound' : undeclared identifier
执行 cl.exe 时出错.