Dynamic array C++-Collection of common programming errors
If your ‘inner’ arrays are all 8 elements each, you can use this approach for a dynamically resizable array of complex arrays of 8 elements:
std::vector c(line);
// new and delete are not needed here
You could of course substitute std::vector for std::array in this case — std::array may not be available depending on the library you’re using.
std::array is a little more exact than std::vector when the element count is invariant. Thus, std::array can make a ton of optimizations std::vector cannot. How that affects your program may or may not be measurable.
The good thing about this is that the library implementations are well tested, will insulate you from and detect some usage errors.