64,632
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <bitset>
#include <stdio.h>
using namespace std;
int main()
{
unsigned char i = (13 & 0xf) | (14 & 0xf) << 4;
bitset<8> b(i);
cout << b << endl;
printf("%d - %d\n", (i & 0xf), (i >> 4) & 0xf);
return 0;
}