By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,925 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,925 IT Pros & Developers. It's quick & easy.

istream weirds

P: n/a
istream does not seem to be behaving logically.

..eof() or .peek() == EOF is being issued on a double CR.

So basically the app I am working on bombs out on a blank line of input.

Is this correct behaviour of istram or is there something weird going on ?

Aaron
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
> Is this correct behaviour of istram or is there something weird going on ?

Sorry that should be 'istream' not 'istram' :)

Aaron
Jul 23 '05 #2

P: n/a
> istream does not seem to be behaving logically.

.eof() or .peek() == EOF is being issued on a double CR.

So basically the app I am working on bombs out on a blank line of input.

Is this correct behaviour of istram or is there something weird going on ?


I was doing a .get() rather than a .getline() ! :)

Aaron
Jul 23 '05 #3

P: n/a
what is CR?

Aaron Gray wrote:
istream does not seem to be behaving logically.

.eof() or .peek() == EOF is being issued on a double CR.

So basically the app I am working on bombs out on a blank line of input.

Is this correct behaviour of istram or is there something weird going on ?


I was doing a .get() rather than a .getline() ! :)

Aaron


Jul 23 '05 #4

P: n/a
> what is CR?


I think it stands for Carriage Return.

Ben
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.