Hey im new to c++ and am having a really hard time with this program, please help!
Im supposed to design a program to read racers from a text file, sort them by ranking their race times, and print it to a new data file.
Each racer was identified with a Bib number and raced twice in the blue race course and twice in the red race course. A racer's combined time is their fastest blue-race + their fastest red-race. The fastest(lowest) total time will be the winner of the evening's race event. Rank the racers.
The datafile datatypes will conform to the following format:
The first to third lines are char[]'s and can be considered to be lines of titles.
From the fourth line on:
the first int is the bib#;
the char[] is the racer's first and last name;
next is the int with the racer's age;
then the char for the racer's gender;
the first double is the first blue racecourse time; the second double is the first red racecourse time;
the third double is the second blue racecourse time, and the fourth double is the second red racecourse time.
My biggest problem is passing values between the functions i have no clue how to set up my function prototypes, I supposed to use pass by value, reference, and array reference. I dont even know what my parameters are.
I have no clue whats wrong with it, and it is a lot, or where to start to fix it, ive been working on it for over a week and cant get anything going, please help me! I have started the program like this: