- What are the three (with C++11 four) types of STL containers? What are the container class templates for each type?
-
-
-
-
- Write a complete C++ program that:
- Reads in integers from STDIN (until a non-integer is entered) and stores them into a vector
- Print out how many numbers are in the vector (using a vector method if possible)
- Prints out the numbers in the container
- What would the equivalent program look like that used a traditional array?
- How does the vector (template) class determine how to allocate memory?
Last Modified: