Given the availability of an ifstream object named input, write the other statements necessary to read an integer into a variable datum that has already been declared from a file called rawdata. Assume that reading that one integer is the only operation you will carry out with this file. (Note: write just the statements, do not define a main function.)
.
.
Click on the title for the solution
.
.
input.open("rawdata");
input >> datum;
input.close();
.
Click on the title for the solution
.
.
This is the answer:
:
input.open("rawdata");
input >> datum;
input.close();
Comments
Post a Comment