Declare and open input file stream fileIn and output file stream fileOut. Attach these to files named input.dat and output.dat. Write #include directives for any required header files. Make certain names from namespaces are accessible.
What will be an ideal response?
```
#include
. . .
ifstream fileIn;
ofsream fileOut;
fileIn.open(“input.dat”);
fileOut.open(“output.dat”);
```
The first definition defines fileIn to be the required input file stream, the second defines fileOut to be the required output file strream. The next two calls the open member function attaches the file streams to the file names in the quoted argument. This makes fileIn refer to input.dat and fileOut refer to output.dat.
You might also like to view...
Which of the following best describes the accountability key information security principle?
A) The logging of access and usage of information resources B) The configuring of the Security log to record events C) The process of tracing actions to their source D) The process of identifying users who seek access to secure information
________________________________________ enables remote communications to networks, intranets, virtual private networks, and extranets by way of the Internet.
Fill in the blank(s) with the appropriate word(s).
While using Flash Fill, make sure that:
A. ?you enter the desired pattern manually in at least five cells. B. ?the worksheet is in Print Preview. C. ?the data pattern includes at least one blank cell. D. ?you enter thedata pattern in the column right next to the related data.
Wbadmin subcommands include Start backup, Stop job, Get versions, Get status, and ____________
a. Pause job b. Get items c. Alert when done d. Use network