|
|
int* array = new int[100];
To resize the array you allocate a larger array and copy the elements to the new array and delete the old array. This is very boring and error prone so that's why there is a class that can do these things easier for you, called std::vector.