64,648
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <bitset>
using namespace std;
void main()
{
bitset<16> A;
A = 0x7788;
cout << A << endl;
A[3] = !A[3];
A[10] = !A[10];
cout << A << endl;
unsigned long B = A.to_ulong();
cout << hex << B <<endl;
}