K kmwap Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-18 #1 c++ builder 怎样在一个文本框中显示一个字符的二进制?[?]
X xiao.lit Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-18 #2 大概是这样,我的手头没有 CBuilder string str = ""; char dat; char mask = 0x80; for(int i=0;i<8;i++) { if(dat & mask) str += "1"; else str += "0"; mask >>= 1; } edit1->text = str;
大概是这样,我的手头没有 CBuilder string str = ""; char dat; char mask = 0x80; for(int i=0;i<8;i++) { if(dat & mask) str += "1"; else str += "0"; mask >>= 1; } edit1->text = str;