Which of the following statements opens a file named info.txt for both input and output?
a. dataFile.open("info.txt", ios::in && ios::out);
b. dataFile.open("info.txt", ios::in, ios::out);
c. dataFile.open("info.txt", input || output);
d. dataFile.open("info.txt", ios::in | ios::out);
e. None of these
d. dataFile.open("info.txt", ios::in | ios::out);
You might also like to view...
The vi commands sequence: dd G p
a: deletes the current line and saves it in the G buffer b: deletes the current line and place it after the letter G c: deletes two lines and place them in the G buffer d: move s the current line to the end of the file e: deletes the letter G
(Compound Interest Calculation) Modify Fig. 4.6 so it uses only integers to calculate the compound interest. [Hint: Treat all monetary amounts as numbers of pennies. Then “break” the re- sult into its dollar and cents portions by using the division and modulus operations. Insert a period.]
What will be an ideal response?
The PowerPoint Slide Show format saves a file with the ________ file extension
Fill in the blank(s) with correct word
Orientation and scaling CANNOT be applied to grouped worksheets
Indicate whether the statement is true or false.