(C++) Write a program to remove unnecessary blanks from a text file. Your program should read the text file and copy i
Posted: Sun Jul 03, 2022 11:23 am
(C++) Write a program to remove unnecessary blanks from a text file. Your program should read the text file and copy it to another text file, but whenever more than one blank occurs consecutively, only one blank should be copied to the second file. The second file should be identical to the first file, except that all consecutive blanks have been replaced by a single blank.If the input file e.g. looked like this:
What a beautiful day! I wish I was at the beach... The output file should look like this:What a beautiful day! I wish I was at the beach…You need to have a plan for your program as well as the actual program code, input and output files. Planning your program can take the form of a flowchart, pseudocode, or notes to guide you in the development of the program.
What a beautiful day! I wish I was at the beach... The output file should look like this:What a beautiful day! I wish I was at the beach…You need to have a plan for your program as well as the actual program code, input and output files. Planning your program can take the form of a flowchart, pseudocode, or notes to guide you in the development of the program.