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"
This program must read in characters individually using inputfile.get() and while(currentchar == previouschar). No arrays, libraries, or advanced programming concepts.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
