uTools-Manuals/docs/c/bell.html
2019-04-21 11:50:48 +08:00

40 lines
754 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>标准库函数 - bell</h1>
<p>原型extern void bell(void);</p>
<p>用法:#include &lt;system.h></p>
<p>功能:响铃</p>
<p>说明:当在文曲星中,如果所按键在当前功能中不可用,便会发出类似声音。</p>
举例:<pre><code class="language-c">
// bell.c
#include &lt;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>相关函数:无