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: 11 /
Q: 6
Explain the difference between a set and a list. When might you use one or the other
Chapter: 11 /
Q: 7
Define a map for which the key is the family’s last name and the value is a vector of the children’s names. Write code to add new families and to add new children to an existing family
Chapter: 11 /
Q: 8
Write a program that stores the excluded words in a vector instead of in a set. What are the advantages to using a set
Chapter: 11 /
Q: 9
Define a map that associates words with a list of line numbers on which the word might occur
Chapter: 11 /
Q: 10
Could we define a map from vector
::iterator to int? What about from list
::iterator to int? In each case, if not, why not
Chapter: 11 /
Q: 11
Redefine bookstore without using decltype
Chapter: 11 /
Q: 12
Write a program to read a sequence of strings and ints, storing each into a pair. Store the pairs in a vector
Chapter: 11 /
Q: 13
There are at least three ways to create the pairs in the program for the previous exercise. Write three versions of that program, creating the pairs in each way. Explain which form you think is easiest to write and understand, and why
Chapter: 11 /
Q: 14
Extend the map of children to their family name that you wrote for the exercises in § 11.2.1 (p. 424) by having the vector store a pair that holds a child’s name and birthday
Chapter: 11 /
Q: 15
What are the mapped_type, key_type, and value_type of a map from int to vector
total questions:
591
Previous
56
57
58
59
60
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason