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, andsetof any type(s)Put stuff in the collection (
vectorusespush_back,mapuses the[]syntax, andsetusesinsert)Search for elements (or search for keys in a map), using the
findfunctionPrint all the elements (in the map, print both the keys and values), using an iterator and a
forloop
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.