Quote Originally Posted by Lindley View Post
^Not the problem.
Its not. Its bug.

void getName(char name[]) const

also have a problem/bug as you wish. You should pass parameter as reference.