Chapter 3: Problem 17
The following program is supposed to read two numbers from a file named
input.dat and write the sum of the numbers to a file named output.dat.
However, it fails to do so. Rewrite the program so that it accomplishes what
it is intended to do. (Also, include statements to close the files.)
#include
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.