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: 7 /
Q: 1
Write a version of the transaction-processing program from § 1.6 (p. 24) using the Sales_data class you defined for the exercises in § 2.6.1 (p. 72)
Chapter: 7 /
Q: 2
Add the combine and isbn members to the Sales_data class you wrote for the exercises in § 2.6.2 (p. 76)
Chapter: 7 /
Q: 3
Revise your transaction-processing program from § 7.1.1 (p. 256) to use these members
Chapter: 7 /
Q: 4
Write a class named Person that represents the name and address of a person. Use a string to hold each of these elements. Subsequent exercises will incrementally add features to this class
Chapter: 7 /
Q: 5
Provide operations in your Person class to return the name and address. Should these functions be const? Explain your choice
Chapter: 7 /
Q: 6
Define your own versions of the add, read, and print functions
Chapter: 7 /
Q: 7
Rewrite the transaction-processing program you wrote for the exercises in § 7.1.2 (p. 260) to use these new functions
Chapter: 7 /
Q: 8
Why does read define its Sales_data parameter as a plain reference and print define its parameter as a reference to const
Chapter: 7 /
Q: 9
Add operations to read and print Person objects to the code you wrote for the exercises in § 7.1.2 (p. 260)
Chapter: 7 /
Q: 10
What does the condition in the following if statement do? if (read(read(cin, data1), data2))
total questions:
591
Previous
39
40
41
42
43
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason