So far we\'ve talked about container classes ( the Bag class, Sequence class, ST
ID: 3607248 • Letter: S
Question
So far we've talked about container classes ( the Bag class, Sequence class, STL multiset class) and Linked List, Dynamic Arrays, Template Functions.
NO need to create a program.. I just wanna know what container would be best and why. thanks in advance!
. Create a program where we want to store names of cities. . Every time we add a city to our container we want to place it in the correct spot so at the container has the cities in order from A- Z. . Consider the data structures we have talked about so far. What container would we use and why?Explanation / Answer
we can use stl multiset class because ,it maintains the objects inserted in sorted order and unlike set, objects of same values can be inserted in it so, in our case cities with same name.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.