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  阅读(638)  评论(0编辑  收藏  举报