Why can't myName() return a string instead of an int? Also, the restriction on cout seems to be for your function body only.
Great post title, BTW.
Reputation Points: 1165
Solved Threads: 578
Quantitative Phrenologist
Online 4,271 posts
since Sep 2009