#include #include using namespace std; int main() { const unsigned int width = 32; bitset b1 = 23; bitset b2 = 1023; bitset b3; cout << "Type in a binary number (type a non-binary digit to end) "; cin >> b3; cout << "You typed " << b3 << endl; cout << "b2 flipped=" << b2.flip() << endl; cout << "b1=" << b1 << endl; return 0; }