// Oldham, Jeffrey D. // 2000Apr26 // CS1321 #include #include // has EXIT_SUCCESS #include "bitstream.h" int main() { bitistream bi(cin); bitostream bo(cerr); bool bit; while (bi.nextBit(bit)) { cout << "The next bit is :" << bit << ":\n"; bo.nextBit(bit); } return EXIT_SUCCESS; }