I\'m new to C++ and I\'m using the vector class on my project. I found it quite useful because I can have an array that automatically reallocates whenever it is necessary (
The vector object may well be instiantiated on the stack but the data within the vector will be on the heap.
(The trivial class class foo {int* data;}; has this characteristic)
class foo {int* data;};