Question: C++: Having trouble while reading from file I was trying to read from a file (this is the file) at the first object, everything is

C++: Having trouble while reading from file

I was trying to read from a file (this is the file)

C++: Having trouble while reading from file I was trying to readat the first object, everything is normal, but something wrong when reload obj 2 (the output below)

from a file (this is the file) at the first object, everythingI put cout in my code to detect the errors

is normal, but something wrong when reload obj 2 (the output below)and this is what I found:

I put cout in my code to detect the errors and thisis what I found: please help to fix the error 01/02/2020:01/02/2023: hoplease help to fix the error

01/02/2020:01/02/2023: ho chi minh:1200:10:1:rat la dep 04/04/2021:03/03/2023: da nang:1299:12:1:rat la dep can not load this date into "end" variable, so "end" had to store the next data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!