Exercise 4.2.1: Refine Exercise 4.1.5 by reading the original bit sequence out of a user built file bit_seq. Additionally, store the bit-stuffed bit sequence in the file bit_stff (note that the integer values in the input and output stream have to be separated by whitespaces). Hint: The output file bit_stff has to be declared as ofstream, which is defined like ifstream in fstream.h.
Continue with section 4.3
Back to index
Johannes Weidl (J.Weidl@infosys.tuwien.ac.at) - Apr 16, 1996