Given the availability of an ofstream object named output, write the other statements necessary to write the string "3.14159" into a file called pi. (Do not define a main function.)
.
.
Click on the title for the solution
.
.
output.open("pi");
output<<3.14159;
output.close();
.
Click on the title for the solution
.
.
This is the answer:
:
output.open("pi");
output<<3.14159;
output.close();
Comments
Post a Comment