Lecture 3 - Slide 14 : 27
Vectors - examples

We provide a couple of program examples that use the template class vector

vector-1.cc
A simple vector example - similar to first array program.
vector-1-modern.cc
A variant of the simple vector example - non-executable.
vector-1-modern-compilable.cc
A variant of the simple vector example - executable.
vector-2-cpp11.cc
Another vector example - constructors, insertion, lexicographic comparison.
vector-2-output
Program output.