mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 15:04:05 +08:00
40 lines
754 B
HTML
40 lines
754 B
HTML
<h1>标准库函数 - bell</h1>
|
||
|
||
|
||
<p>原型:extern void bell(void);</p>
|
||
|
||
<p>用法:#include <system.h></p>
|
||
|
||
<p>功能:响铃</p>
|
||
|
||
<p>说明:当在文曲星中,如果所按键在当前功能中不可用,便会发出类似声音。</p>
|
||
|
||
举例:<pre><code class="language-c">
|
||
|
||
// bell.c
|
||
|
||
#include <system.h>
|
||
|
||
main()
|
||
{
|
||
int c;
|
||
|
||
clrscr();
|
||
printf("press any key\n");
|
||
c=getchar();
|
||
|
||
while(c!=0x1b)
|
||
{
|
||
bell();
|
||
c=getchar();
|
||
}
|
||
|
||
printf("Thank you!");
|
||
|
||
getchar();
|
||
return 0;
|
||
}
|
||
|
||
</code></pre>相关函数:无
|
||
|