>do I need to deal with an 'empty' last or an 'empty' first which might make two items equal?
The only situation where this would be true is if the last name is the same and the first name is empty for both objects (or vice versa). Of course, they would be equal and it's hard to figure out a way to avoid that since you would basically be saying "Strings that are equal are equal, except...", which is nonsensical.
>or even better a last name of "AB" with a first name of "CD" vs. a last name of "A" and a first name of "BCD".
Now that makes more sense, and you're on the right track for how to solve it.
>what int is being assigned for the value?
If not value is given, it defaults to T(), which is 0 for int. So for each name added, I'm incrementing the value starting with 0.
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004