while ( (letter= cin.get () ) != -1)
Would that work correctly? What I mean is the != -1 part used to exit the while loop.
I am reading this college book on C++ and they used EOF instead of -1. Which one is better? End of File just seemed harder to tell what to press to me.
