|
From: Verne H. B. <ve...@sy...> - 2005-08-12 19:50:53
|
Simply use cin.get();
return 0;
// This works nicely in all three of the programs I use though sometimes the
'system("PAUSE"); will work as well in Borland, Dev C++ or Ms V c++.
Verne
----- Original Message -----
From: "lordSauron" <lor...@gm...>
To: <dev...@li...>
Sent: Friday, August 12, 2005 2:48 PM
Subject: Fwd: FW: [Dev-C++] Execution Problem
what if you said cin.ignore (0, '\n'); ???
Does anyone know if that'd work? Or maybe putting in a negative
number or something... I dunno. There should just be a way to do
this, but you might have to get sneaky and be weird like this:
while (true) {
if (getc() != '\n')
break;
}
or something to that effect.
NOTE: dangit. forgot to change the to: area to dev-cpp-users.
MESSAGE TO ADMIN: make the place have a reply-to adress PLEASE!!!
it's really screwing me up!
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|