I recommend using a vector instead of a raw array because vector methods are more comfortable and safer (e.g. at(x) checks, if x lies within the borders).
Then just replace it with an array!? What changes is that you have to determine the array's size before and must access the elements with the []-operator instead of push_back() and at().