RE: [Dev-C++] RE: Dev C++ Question Vol. 1 #612 - cin.get()
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2002-02-13 00:12:39
|
No it has to do that it reads the number and stores it in the variable aand the '\n' remains in the stream. This is not a bad thing but a good one because no information is lost and you have 100% low level control of the stream. Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of patche Sent: Tuesday, February 12, 2002 6:48 PM To: dev...@li... Subject: [Dev-C++] RE: Dev C++ Question Vol. 1 #612 - cin.get() Nitpicking aside I think the reason why it does that has something to do with the compiler reading a newline command into either [ENTER] key or "\n" and replacing them with "\0" the null symbol. Anyone, care to comment? patche |