dualing 3 number in keypad

Status
Not open for further replies.
Considering assumption that you are programming in C language :

Code:
void WriteNum3dec( unsigned charnum )
{
   unsigned char dig;
   dig = num / 100 + '0';
   if ( ( dig == 0 ) && ( ISWHITE ) ) SayChar( WHITE );
     else SayChar( dig );
   dig = (num % 100) / 10 + '0';
   SayChar( dig );
   dig = (num % 10) + '0';
   SayChar( dig );

+++
 

What is the reason ?
C is allmost a descriptive language, and you can easilly perform that task, whatever the purpose.

+++
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…