What do I benefit from using cin.ignore();

I am sorta in about my 2nd week of C++ and using tutorials to teach myself programing. I came across a site that is using cin.ignore(); to ignore the "enter key" press. what is the benefit from this and when would be the more appropriate times to use it.
Sometimes a program requires the buffer to be of a certain size before flushing/processing it. Disabling certain keys can prevent processing too early.

Not directly with cin but ignore() can also be used as an index when reading though file when u already know that x characters don't need to be processed.
cool, I guess that makes it simple. I am gonna try to use this now on some things I am doing.
Topic archived. No new replies allowed.