16,467
社区成员
发帖
与我相关
我的任务
分享
#include <afxdisp.h>
#include <stdio.h>
int main() {
int i;
CString str;
unsigned char uc[6]={0x99,0xff,0x00,0xff,0x00,0xee};
str.Empty();
for (i=0;i<6;i++) {
str+=uc[i];
}
unsigned char ss[6]={0};
for (i=0;i<str.GetLength() && i<6;i++) {
ss[i]=str[i];
}
for (i=0;i<6;i++) {
printf("0x%02x,",ss[i]);
}
return 0;
}
//0x99,0xff,0x00,0xff,0x00,0xee,