According to your title, you are writing in C++. I suggest you use vectors (std::vector). These are dynamic.
If the data you want to save in the arrays needs to be indexed by name, use a map instead (std::map)
For more info, look here: http://www.cplusplus.com/
Click on the "STL: Standard Template Library" link.
Good luck.
Alexis