Lecture overview -- Keyboard shortcut: 'u'  Previous page: Vectors in C++ -- Keyboard shortcut: 'p'  Next page: The free store -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 2 - Page 29 : 42
Notes about C++
Basic facilities
Vectors - examples

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

The first is similar to the initial array example

 

y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/vectors/vector-1.ccA simple vector example - similar to first array program.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/vectors/vector-2.ccAnother vector example - constructors, insertion, lexicographic comparison.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/vectors/vector-2-outputProgram output.