#include
#include
#include
int main ()
{
using namespace std;
// A bitset to hold 8-bits
bitset <8> eightBits;
cout << "Enter a 8-bit sequence: ";
// Store user-supplied sequence into the bitset
cin >> eightBits;
cout << endl;
// create a copy
bitset <8> flipInput (eightBits);
return 0;
}