class nonmember friend istream function (public): just like the >> operator that reads c-strings, your >> operator should skip any leading spaces and then read characters into the string up to the first whitespace character.