//http://blog.csdn.net/chaiwenjun000/article/details/71154235
#include<iostream>
#include<cstdio>
#include<bitset>
using namespace std;
bitset<10> a;
bitset<10> b;
int main()
{
a.set();
cout<<a<<endl;
a.reset();
a[1]=1;
a=a|b;
cout<<a<<endl;
a.flip();
cout<<a;
}
bitset
最新推荐文章于 2024-06-18 12:52:12 发布