ignore( count, terminate )
Will ignore count input characters until terminate is found (terminate is ignored as well):
Go to:
http://www.cplusplus.com/ref/cin is an instance of the class istream, so click the istream box, and that displays the methods that cin can call, adn their meanings.
It defaults to ignore( 1, EOF ) which basically ignores the next character whatever value it is, as even if it is EOF, it will ignore it then stop as 'terminate' was found, and if it isnt, it will ignore one character then stop as it has fullfilled count==1