阅读(3662) (0)

DispBCD

2015-11-11 16:36:00 更新

 原型:extern void DispBCD(int);
           
 用法:#include <system.h>
 
 功能:显示七段数码管数字
 
 说明:调用后在屏幕左侧图标区显示对应数字。
       显示最大值为999。
 
 举例:


     // DispBCD.c
     
     #include <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;
     }