This being C++, you almost certainly don't want to be using raw arrays. The idiomatic C++ method is to use containers like vectors and lists. You can find references for using them all over the place, I like using this one
That said, I agree with Zhivago. You probably want to find yourself a basic C++ intro that would explain all of this to you.