Be sure to use the online documentation of the STL container library
http://www.cplusplus.com/reference/stl/
Lots of useful examples
STL - Standard Template Library
The template library for containers and iterators