Here is some simple code I have written:
I wrote a class to act as a STL vector except with entries indexed by the integers
(the STL vector has entries indexed by the whole numbers).
Anyway, this will be useful to me in the future. You can download the source code: