What is the use of cin. Ignore() function in c++ | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What is the use of cin. Ignore() function in c++

C++ function

24th Apr 2017, 9:26 AM
vishal joshi
vishal joshi - avatar
2 Antworten
+ 7
visit this site for a while, it might answer your question 😁 http://stackoverflow.com/questions/25475384/when-and-why-do-i-need-to-use-cin-ignore-in-c hope this help 😁😁😁
24th Apr 2017, 10:12 AM
Leon lit
Leon lit - avatar
+ 2
It allows to "ignore" a number of characters from the input stream or until you reach an specified character. The number of characters to be ignored is the first parameter (default value is 1) and the specified character to stop ignoring the input is the second parameter (default is EOF).
24th Apr 2017, 12:40 PM
Nelson Urbina
Nelson Urbina - avatar