// single-bit state and operations // #include #include "B1.h" using namespace std; B1::B1() { b = 0; } void B1::print(const char msg[]) const { cout << msg << ": " << b << endl; } void B1::X() { b = !b; } // NOT int B1::M() { return b; } // measure