This commit is contained in:
fofolee
2019-04-21 11:50:48 +08:00
parent 359d29ee0b
commit 38dcd51d8a
6901 changed files with 258583 additions and 2326828 deletions

View File

@@ -1,45 +1,45 @@
<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>相关函数:无
<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>相关函数:无