Describe the differences between a map and a vector
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:11| Question number:1
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:11| Question number:1
total answers (1)
A
`map`
is an associative container which contains an associative array of key-value pairs. Values are found by key. The key doesn't have to be integer.A
`vector`
is an sequential container which contains a normal array of values. Values are found by position. The position is integer.