eof | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

eof

What does 'while(inputeof())' mean?

4th Jul 2017, 12:11 AM
Benson Tan
Benson Tan - avatar
3 Answers
+ 8
eof stands for "end of file" So basically it loops until it reaches the end of the file.
4th Jul 2017, 12:14 AM
Karl T.
Karl T. - avatar
+ 6
I'd have to see the rest of the code. Usually it's while(!eof()) to get data until the input reaches the end.
4th Jul 2017, 12:18 AM
Karl T.
Karl T. - avatar
0
Thanks !! But what if I put '!' In front of the variable name 'input', it becomes : while(!inputeof())
4th Jul 2017, 12:16 AM
Benson Tan
Benson Tan - avatar