unsigned char bcd[13];

......

string bcdstr;

for(int i=0;i < 12;i++)

{

bcdstr=FormatString("%s0x%.2x",bcdstr.c_str(),bcd[i]);

}

posted on 2017-03-10 16:28  baraka  阅读(650)  评论(0)    收藏  举报