Question: I can't figure out why this function always returns false even when a valid input is read in from the file. (I'm using c++ 11
I can't figure out why this function always returns false even when a valid input is read in from the file.
(I'm using c++ 11 and the couts and comments are my attempt at error checking)

bool Read (Database &d, istream &in) if (in.fail()) return false; Ticket t while (in>>t.citationNum>>t.date.month>>t.date.day>>t.date.year>>t.clockedSpeed>>t.speedLimit>>t.roadType) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
