Hi, does anyone know what cin.ignore means? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi, does anyone know what cin.ignore means?

28th Sep 2019, 11:59 AM
Leonor
Leonor - avatar
1 Answer
+ 2
FOLLOW ME  function is used to skip(discard/throw away) characters in the input stream. Ignore file is associated with the file istream. Consider the function below ex:cin.ignore(120,'/n'); the particular function skips the next 120 input character or to skip the characters until a newline character is read
28th Sep 2019, 1:18 PM
KfirWe
KfirWe - avatar