What output is sent to the file out.dat by the following code, assuming these lines of code are embedded in a correct program?
What will be an ideal response?
```
ofstream fout;
fout.open("out.dat");
fout << "*" << setw(5) << 123 << "*"
<< 123 << "*" << endl;
fout.setf(ios::showpos);
fout << "*" << setw(5) <<; 123 << "*"
<< 123 << "*" << endl;
fout.unsetf(ios::showpos):
fout.setf(ios::left);
fout << "*" << setw(5) << 123 << "*"
<< setw(5) << 123 << "*" << endl;
```
Using g++, output sent to out.dat is the following, after embedding the code in a
correct program:
```
123*123*
+123*+123*
*123*
```
You might also like to view...
To verify that a miniPCIe is installed properly with Windows, you may use
A) The registry B) PC Steering Window C) Device Manager D) Advanced Setup
Digital data can be __________ that have been converted into discrete digits such as 0s and 1s.
A. text B. numbers C. graphics, sound, and video D. all of the above