Question: Write a C++ program to a) compress and b) decompress a file containing alphabet characters and symbols (no numbers). If the input file contains BBBBcccc...KKKLL

Write a C++ program to a) compress and b) decompress a file containing alphabet characters and symbols (no numbers). If the input file contains "BBBBcccc...KKKLL" the compressed result will be "4B4c3.3K2L" Additionally, newline characters are read but appear only as a number. For example, if the previous input ended in a newline character (' ') the result would be "4B4c3.3K2L1"

This program must read in characters individually using istream::get() and while loops (basic programming techinques) -- No advanced algorithms or libraries.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!