How do I determine if there is anything (like a newline char) left on the input stream before reading more data from the stream?
I have tried getchar() to take one more character off the stream, but I don't necessarily know that there always will be another char there...
I have also tried cin.clear(), which does not take the newline char off the stream.
Thanks.
it's the peek that I can use, thanks. I will peek, and if I see what I don't want there, I can use simple getchar();
Thanks......