As far as I know, you cannot change an array size at runtime. I think a vector<string> would be better suited for the job.
You'll probably need
#include <vector> and
using namespace std; (or use std::)
Add to it with
Also try to learn about the .end() and .begin() vector functions. Try with this and see how far you can get.