Re: [Dev-C++] differnece between system pause and cin.get()
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2003-02-18 02:00:52
|
-------Original Message-------=0D =0D From: Catsquotl=0D Date: =D4=F1=DF=F4=E7, 18 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 1:22:44 = =F0=EC=0D To: dev...@li...=0D Subject: Re: [Dev-C++] differnece between system pause and cin.get()=0D =0D Thanks for the response.=0D Is there a way of chekking if there`s annything left in the cin stream. =0D Or to empty it for that matter before using it as a tool for keeping dos boxes open :-)=0D =0D =0D =3D=3D> You can ensure it is empty by applying cin.ignore() after any cin= you perform. There are other ways too.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |