You have to allocate new memory for the array. This is tricky and I'm unsure of your skill level. If you need dynamic arrays, I suggest using vectors instead. If you have some code to look at, I can show you how to implement vectors or how to increase the size of the array.