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
cin.get() what does it do?
cin.get() what does it do?
Mar 2, 2010 at 6:18am UTC
EEVIAC
(43)
What is the purpose of using this:
cin.get();
cin.get();
return 0;
at the end of your code?
Mar 2, 2010 at 4:24pm UTC
Zhuge
(4664)
It's an attempt to get any leftover newlines then wait for an input character before exiting. It's not the best method though.
http://www.cplusplus.com/forum/articles/7312/
EDIT: fixed typo
Last edited on
Mar 2, 2010 at 4:32pm UTC
Mar 2, 2010 at 6:04pm UTC
tummychow
(1210)
Also read this:
http://www.cplusplus.com/forum/beginner/1988/
Topic archived. No new replies allowed.