Chapter 17: Problem 4
Find the error(s) and show how to correct it (them) in each of the following. a. File payables.dat referred to by ofstream object outPayable has not been opened. outPayable \(<<\) account \(<<\) company \(<<\) amount \(<<\) end \(l\) b. The following statement should read a record from the file payables.dat. The ifstream object inPayable refers to this file, and istream object inReceivable refers to the file receivables.dat. inReceivable \(\gg\) account \(>>\) company \(\gg>\) amount c. The file tools.dat should be opened to add data to the file without discarding the current data.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.