Question: can someone help me solve these problems? the course uses c++ (3 pts) 20. Consider an input stream fileRead. What is the difference between using
can someone help me solve these problems? the course uses c++

(3 pts) 20. Consider an input stream fileRead. What is the difference between using white and while(fileRead.eof()). while(file Read) checks for errors in the entire filer errors at white (file Read cof()) chekes for the end of the file. (3 pts) 21. With regards to checking while(fileRead) vs while('fileRead.eof() in a loop. what happens if a data value is read into the wrong type in the loop (and this error is otherwise not accounted for in the loop). 3 pts) 22. What are the semantics of the extraction operator in C++ in terms of (1) what sort of data is read. (2) what stops the read, and (3) where the buffer pointer is left after the read? - (1) The data being read in is what a user types in. ~ -1 (2) The extenkey 1 (3) at the end of the line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
