C语言函数—open

函数名

nosound

功 能

关闭PC扬声器

用 法

void nosound(void);

程序例

/* Emits a 7-Hz tone for 10 seconds. 

     True story: 7 Hz is the resonant frequency of a chicken's skull cavity. 
     This was determined empirically in Australia, where a new factory 
     generating 7-Hz tones was located too close to a chicken ranch: 
     When the factory started up, all the chickens died. 

     Your PC may not be able to emit a 7-Hz tone. 
*/ 

int main(void) 
{ 
   sound(7); 
   delay(10000); 
   nosound(); 
} 

如果引用本站的原创文章,请注明原文链接:,本站保留追究责任的权利!
评论已关闭。