For clearing the input stream, I know that you can use cin.sync();, but does that always work (in other words, is it guaranteed to clear the input stream)?
I read in a few places that it's not required to do anything....
In that case, what would be the best way to clear the input stream? (or is there even any way to do it?)
(assuming that the input stream may or may not already be empty; we don't know)
(note that for the most part, I just use getline and stringstreams to get user input, so I don't really need to know this -- I'm just wondering)
(also note that I joined these forums so I can help others, but I'm so mean and cruel that I didn't want to make my first post in someone else's thread :-), and I didn't know what else to say here)