+ 1

Cin.ignore()

Hi, i don't understand cin. ignore() ...

13th Nov 2016, 3:46 PM
Mohammed Aljezawi
Mohammed Aljezawi - avatar
2 Réponses
+ 3
Well, cin.ignore() is usually put after an input so that it won't skip tp the next line. Otherwise, it will go to a new line, as it normally does. Also, it can be used to ignore certain characters in an input.
13th Nov 2016, 3:51 PM
Keto Z
Keto Z - avatar
0
how to use this operation. Please give an example. Thanks
21st Nov 2016, 9:42 AM
Chitransh Vishwakarma
Chitransh Vishwakarma - avatar