Originally Posted by Brain CellActually, not quite, although Brain Cell may have gotten that from something I posted(which was incorrect--sorry!). It's actually the >>operator that is programmed to skip leading whitespace it sees, then start reading in data, and finally stop reading data when it encounters a whitespace character(space, tab, or newline)--not cin. If you learn about file I/O, you will see that the >>operator does the same thing with other streams besides cin.Bang on, baby!
(I'll have to try and search for that post of mine, and correct it. )