1.
What is the name of the header file that you need to include if you want your C++ program to read from, or write to, a file?
- fstream
- iostream
- stringstream
- stdio
endl object are true?
endl have the potential to leave data in the output buffer if the program crashes.cout << '\n' and cout << endl will write an end-of-line (a newline character) to standard output.endl is that endl will automatically flush the output buffer.cin >> a >> b >> c;
cin >> num is executed, the user enters a string instead of an integer.getline(cin, message) where βmessageβ is a string.happy smile laugh sad frown cry angsty hyper euphoric delightful wonderful lovely maudlin
hsaem
while(getline(<your args here>)) to loop over the lines of a file.
5 11.1 + 3.2 -2.0 - 8.0 3.0 * 12.3 9.0 / 3.010.0 / 9.0
14.3 -10 36.9 31.11
Ziggy 1 CleoΒ 4 Ziggy 5 CleoΒ Β 7 Scar 28 Ziggy -3 Ziggy -2 Skye 105 Spike 16 Mr.Grey 1000 END
Ziggy has 1 Cleo has 4 Ziggy has 6 Cleo has 11 Hey, Scar is not one of Dr. Wilson's cats! Ziggy has 3 Ziggy has 1 Cleo has 12 Skye has 105 Spike has 16 Hey, Mr.Grey is not one of Dr. Wilson's cats!