University of Calgary

duplicate remover

Duplicate Character Remover
source: Tino Duong, 2003

 

Description:

You have a large text file and wish to perform a simple operation on it, where all the repeating consecutive characters are removed. 

For example:  the sentence

"The green umbrella, had all the goooood attributes of a shade blocker"

becomes:

"The gren umbrela, had al the god atributes of a shade blocker"

Requirements

          For example, the output should look like

                ./a.out <input file> <output file>
               

               -Where a.out is the executable name
               - input file, is the name of the file to be parsed
               - output file, is the name of the file where the answer will be written

Concepts

Additional Concepts



Updated: August 30, 2005 04:59 PM