By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,589 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,589 IT Pros & Developers. It's quick & easy.

std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');

P: n/a
std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');
I have seen it in faq - what does it do, exactly?

May 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
puzzlecracker wrote:
std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');
I have seen it in faq - what does it do, exactly?


What's the use of having all these books if you don't use them? I'll
give you an hint: The C++ Standard Library by Josuttis, page 609.
Jonathan

May 8 '06 #2

P: n/a

Jonathan Mcdougall wrote:
puzzlecracker wrote:
std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');
I have seen it in faq - what does it do, exactly?


What's the use of having all these books if you don't use them? I'll
give you an hint: The C++ Standard Library by Josuttis, page 609.
Jonathan


good point, I already founded in api

May 8 '06 #3

P: n/a

"puzzlecracker" <ir*********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');
I have seen it in faq - what does it do, exactly?


Extract and discard from the stream all characters
up to and including '\n' or until end-of-stream,
whichever comes first.

-Mike
May 8 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.