473,327 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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

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
3 7035
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

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.