I was doing a little programming problem given to me by an instructor and am having problems with a while loop and an EOF.
/*a ton of stuff, some reads from the file, but nothing else and no errors*/
if (input == EOF)
does anyone know why this won't compile, and why i can't use while(input != EOF), which also doesn't compile??
the errors VS6 gives me:
prog.cpp(102) : error C2446: '==' : no conversion from 'const int' to 'struct _iobuf *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
prog.cpp(102) : error C2040: '==' : 'struct _iobuf *' differs in levels of indirection from 'const int'