Find the errors and show how to correct it.
The following statement should read a record from the file payables.dat. The ifstream object inPayable refers to this file, and ifstream object inReceivable refers to the file receivables.dat.
```
inReceivable >> account >> company >> amount;
```
Error: The incorrect ifstream object is being used to read a record from the file
named payables.dat.
Correction: Use ifstream object inPayable to refer to payables.dat.
Computer Science & Information Technology
You might also like to view...
Which type of password provides the highest level of security?
A. one-time passwords B. cognitive passwords C. graphical passwords D. passphrase passwords
Computer Science & Information Technology
The ________ statement passes a value back to a function’s caller.
a. recover b. restore c. pass d. return
Computer Science & Information Technology