Salt_Peter wrote: Arrays are prehistoric, consider std::vector. You'll rarely ever use an array again. std::vector has its disadvantages, though. For example, if you have a pointer to an element, and then you add new elements to the vector, your pointer might get invalidated (or not, there's no way of knowing). Also the memory usage of std::vector might not alway be optimal, ...