void ThreeByHexToBcd(unsigned long int Hexs,unchar j)
{
unsigned long int Temp;
unchar Disp_Buffer[8];
unchar i;
Temp=10000000;
for(i=j-1;i;i--)
{
Disp_Buffer=0;
while((Hexs>=va)&&(Temp>9))
{
Hexs-=Temp;
Disp_Buffer++;
}
Temp/=10;
Disp_Buffer[0]=Hexs;
}
}
tengjingshu_112148725 2009-8-12 15:10
用户518079 2009-2-23 11:51