Re: [Dev-C++] differnece between system pause and cin.get()
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Catsquotl <C.a...@hc...> - 2003-02-17 23:21:08
|
At 00:24 18-2-2003 +0200, Ioannis Vranos wrote: >-------Original Message------- > >From: <mailto:C.a...@hc...>Catsquotl >Date: =C4=E5=F5=F4=DD=F1=E1, 17 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003= 2:21:19 =EC=EC >To:=20 ><mailto:dev...@li...>dev...@li...= .net >Subject: [Dev-C++] differnece between system pause and cin.get() > >Hello, > >Obviously there are quite a lot of differences between the two. >However since I am new to c++ and pragramming all together i was wondering >why cin.get() >works sometimes to pauze the system after a programm and sometimes it= won`t. >=3D=3D> Because one or more '\n' has remain in the stream from previous cin= =20 >use(s). > Thanks for the response. Is there a way of chekking if there`s annything left in the cin stream. Or to empty it for that matter before using it as a tool for keeping dos=20 boxes open :-) greets Cat=20 |