>Can't seem to figure this out.
You're not the only one. There isn't a portable way to get the size of a dynamically allocated array. You need to pass the size to your function:
void addNodes(string names[], size_t size)
New members chased away this month: 3