Given the following code. The input file, in.dat, is a copy of the program code in this problem. How will the output file, out.dat, differ from the input file?

What will be an ideal response?
```
// file: testQuestion.cc
// test question: copy files: in.dat to out.dat
// in.dat is a copy of a file containing this code.
// use EOF to terminate copy loop
#include
#include // for exit()
using namespace std;

int main()
{
ifstream in;
ofstream out;
in.open("in.dat");
out.open("out.dat");
while(in << ch)
out << ch;
return 0;
}
```


The code line
in >> ch
will ignore all white space (blanks, tabs, end of line) in the input file. The output in
the file, out.dat will be nearly useless. For example, every variable declaration
will have the necessary space between the type and the identifier removed.

Computer Science & Information Technology

You might also like to view...

The $Recycle Bin file was a place for storing deleted files in which file system?

a. FAT16 b. NTFS c. Ext3 d. HPFS e. Windows 7

Computer Science & Information Technology

You can place almost any other tag in a div tag.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

There are three Chart Tools contextual tabs: Design, Layout, and Edit

Indicate whether the statement is true or false

Computer Science & Information Technology

Which command will open the Vim editor from the terminal window in CentOS 7?

Vedit Vterm Vi Vim

Computer Science & Information Technology