Search:
Forum
Beginners
unable to analyse a line of code in c++
unable to analyse a line of code in c++
Jun 16, 2018 at 2:46pm UTC
Sam Jain
(2)
what does this line of code mean and what is it's use?
cin.ignore(numeric_limits<streamsize>::max(), '\n');
Jun 16, 2018 at 2:58pm UTC
Repeater
(3046)
Ignore everything until a newline
Last edited on
Jun 16, 2018 at 2:59pm UTC
Jun 16, 2018 at 2:59pm UTC
tpb
(1495)
Obviously you've read the documentation (i.e., you're not an idiot).
http://www.cplusplus.com/reference/istream/istream/ignore/
So what part don't you understand?
Jun 16, 2018 at 4:14pm UTC
H00G0
(492)
Here is a topic I recently posted, it was about stream object and not cin. hopefully this can help you understand it better.
http://www.cplusplus.com/forum/beginner/238300/
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs