Urrggghhhh! delete[], of course! I knew it was something basic. So that answers question 1 & 3. As far as 2 goes, I'm pretty sure a declaration like
Code:
string addrs[];
is legal, but when I declare the string this way, then do the assignment
Code:
addrs= new string[NumAddrs];
I get a compiler error. In fact, the error
error: incompatible types in assignment of 'std::string*' to 'std::string [0u]
says the compiler even knows it's a * to [] assignment. In other words, it likes it declared as a * but not as a [], even though I'm assigning a [] to it.