I also wrote an array data type for C++, which you can download from me here. This little gem extends the concept of an array in C++ to a class. You can access every item in the list using array ([]) notation, but it checks to make sure you are not trying to access elements in the array that don’t (necessarily) exist. It also maintains its own size, and has a couple other feature I’ll let you discover. There’s a full interface reference listed at the top of the file, so you should have no problem figuring out how it works.
Posted by wmyers in projects, personal