If I were you, I wouldn't be using the & operator on strings (5th line of your code). It's a bitwise operator and will perform a bitwise and on the address, not a concatenation. Use a std::string instead of a char* and use the + operator to concatenate the names.
What is the actual question you are asking us? You posted an assignment and some code, no actual question we can reply to.