Professional Documents
Culture Documents
Assignment Problems
A dynamic array, that you can add and remove entries from A type of container
Use unsigned int because v1.size() returns unsigned int. Iterator is a pointer Vector<thing>::iterator it; Acts like an array vector[5]; vector[5] = 10;
Vectors in C++
Memory
Adding too much can become slow Needs to copy data to another place