well, it sounds like what you really should be using is a dynamic container like a vector, or a list...arrays are good, but they tend to waste precious memory :)
I can understand if you're a noob, but vectors aren't hard at all:
http://cplusplus.com/reference/stl/vector/
Hope I helped :)