this is something I did a while back, and can't remember how.
basically this is what should happen.
I have 2 files, one with 3 records in them (values sapce seperated) and a second file with several records in them also space seperated.
I need to read the records from the second file, and then get the times from the first file where the distance are equal. and then check if it is a new record or not.
the first file wil look like this (distance maxtime recordtime).
10 234584 226348
21 432489 423497
42 904679 894566
the second file layout (surname starttime endtime distance)
smith 09:00:00 12:06:18 21
How can i read in the fiels values into variables, so that I can compare then and do the calculations.
I have to use ifstream.
Please some help will be much apreciated.