uTools-Manuals/docs/c/DispBCD.html

46 lines
836 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>标准库函数 - DispBCD</h1>
<p>原型extern void DispBCD(int);</p>
<p>用法:#include &lt;system.h></p>
<p>功能:显示七段数码管数字</p>
<p>说明:调用后在屏幕左侧图标区显示对应数字。</p>
显示最大值为999。
举例:<pre><code class="language-c">
// DispBCD.c
#include &lt;system.h>
main()
{
int i;
i=9;
clrscr();
printf("Now Display 9");
DispBCD(9);
getchar();
i=99;
clrscr();
printf("Now Display 99");
DispBCD(99);
getchar();
i=999;
clrscr();
printf("Now Display 99");
DispBCD(999);
getchar();
return 0;
}
</code></pre>相关函数:无