emilymontalvo1034 emilymontalvo1034
  • 31-12-2019
  • Computers and Technology
contestada

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.)

Respuesta :

rejkjavik rejkjavik
  • 31-12-2019

Answer:

The statements are given below:

output.open("pi"); // opening the file by the of stream object

output << "3.14159";  

output.close(); // closing the file  

Explanation:

In this we open the file with the help of output stream object .The statement output.open("pi"); is opening the file after after opening the file "pi". The output object print the 3.14159 message in console and finally the output stream file is close with the help of output.close() statements .

Answer Link

Otras preguntas

What is the probability of not drawing a green marble from a jar containing 7 red, 4 green, 3 white, and 9 blue marbles?
how many 176 ohm resistors are connected in series to get a current of 5 a on 220 v battey
prove that: (a2 - b2)3 + (b2-c2)3+ (c2-a2)3 = 3 (a+b) (b+c) (c+a) (a-b) (b-c) (c-a).
Use the words to label the white blood cell
Which internal conflict causes Odysseus to hold onto the shattered raft even though Ino tells him to let go?
What is 469019 nearest 100
Do a narrative essay on If you were An Animal you Would Be? Could you help me start, and give some ideas?
Which of the follow is a prime factor of ?
The process that ice on mount Everest goes through when heated from 10 degree f to 305 kelvin.
What were the first team sports played at the commonwealth games?