cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Why cin.get(); and cin.ignore(); are not
Why cin.get(); and cin.ignore(); are not pausing some of my programs?
Jul 10, 2012 at 1:46am UTC
b1gzz
(20)
Why
cin.get();
and
cin.ignore();
are not pausing some of my programs?
Jul 10, 2012 at 2:11am UTC
Phil123
(131)
Likely because you have a new line in the buffer and the cin.get() function or cin.ignore function () is ignoring the new line (or some characters), instead of providing a temporary "pause until the user inputs something.
Jul 10, 2012 at 2:13am UTC
b1gzz
(20)
love you, Thanks xD
Topic archived. No new replies allowed.