Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
C++ Primer
by
Stanley B.Lippman, Josee Lajoie, Barbara E.Moo
Edition:
5th Edition
ISBN13:
978-0-321-71411-4
ISBN10:
0 -321-71411-3
591
C++ programming
Home
Books
C++ Primer
Similar Books
No books found
Title
Chapter: 8 /
Q: 4
Write a function to open a file for input and read its contents into a vector of strings, storing each line as a separate element in the vector
Chapter: 8 /
Q: 5
Rewrite the previous program to store each word in a separate element
Chapter: 8 /
Q: 6
Rewrite the bookstore program from § 7.1.1 (p. 256) to read its transactions from a file. Pass the name of the file as an argument to main (§ 6.2.5, p. 218)
Chapter: 8 /
Q: 7
Revise the bookstore program from the previous section to write its output to a file. Pass the name of that file as a second argument to main
Chapter: 8 /
Q: 8
Revise the program from the previous exercise to append its output to its given file. Run the program on the same output file at least twice to ensure that the data are preserved
Chapter: 8 /
Q: 9
Use the function you wrote for the first exercise in § 8.1.2 (p. 314) to print the contents of an istringstream object
Chapter: 8 /
Q: 10
Write a program to store each line from a file in a vector
. Now use an istringstream to read each element from the vector a word at a time
Chapter: 8 /
Q: 11
The program in this section defined its istringstream object inside the outer while loop
Chapter: 8 /
Q: 12
Why didn’t we use in-class initializers in PersonInfo
Chapter: 8 /
Q: 13
Rewrite the phone number program from this section to read from a named file rather than from cin
total questions:
591
Previous
45
46
47
48
49
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason