Quiz 8 sample
This quiz will ask you to use vector
, map
, and set
to do some
interesting things. You'll want to know how to do the following:
Create a
vector
,map
, andset
of any type(s)Put stuff in the collection (
vector
usespush_back
,map
uses the[]
syntax, andset
usesinsert
)Search for elements (or search for keys in a map), using the
find
functionPrint all the elements (in the map, print both the keys and values), using an iterator and a
for
loop
CSE 230 material by Pawas Ranjan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Source code for this website available at GitHub.