473,789 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

std::cin.ignore (std::numeric_l imits<std::stre amsize>::max(), '\n');

std::cin.ignore (std::numeric_l imits<std::stre amsize>::max(), '\n');
I have seen it in faq - what does it do, exactly?

May 8 '06 #1
3 7096
puzzlecracker wrote:
std::cin.ignore (std::numeric_l imits<std::stre amsize>::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_l imits<std::stre amsize>::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

"puzzlecrac ker" <ir*********@gm ail.com> wrote in message
news:11******** **************@ i39g2000cwa.goo glegroups.com.. .
std::cin.ignore (std::numeric_l imits<std::stre amsize>::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.