Originally Posted by
matsp
Are you sure your comment is completely correct. In the getLastName (which you haven't updated to return an array) I would expect so. In the printout of getFirstName I would expect to see the full name.
[I just merged all your code into one file, changed the getLastName as I suggested above, and using g++ to compile it, it does what I expect].
You do have an awful lot of blank lines in your code. I'm not saying you shouldn't have blank lines, just that having more than 3 is usually not helpful to the reader.
--
Mats