so i want the program to read five value from a file and if a value doesn't exist it should display an error. I think the problem starts with line 36 where it says "if (inFS >> fileNum1 ==0)" as c++ wont read it.
> as c++ wont read it.
you've got an error message, paste the error message. (the 178 lines if you must)
the >> operator returns the istream object, that way you may chain the command input >> a >> b >> c;
so when doing inFS >> fileNum1 ==0 you are doing inFS == 0 and that is not defined.
Not sure what you're trying to do. If you want to check if the reading was successful, then simply do inFS >> fileNum1
the error message is
"main.cpp:44:23: error: no match for 'operator==' (operand types are 'std::basic_istream::__istream_type {aka std::basic_istream}' and 'int')"
what im trying do is that when the the file is read and the first value is missing it should print out the cout text. it should do this for all five values.