Before you use a pointer array, you have to allocate memory to it, perhaps the "string" library would work better for your purposes
The problem is on lines 10-14.
Remember that in C++ arrays start at zero, not 1. So a five-element array has indices 0, 1, 2, 3, and 4.
Hope this helps.