1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
int main()
{
//Horse1's objects
RaceData horse1Data1("Peter Pan", 91, 7, 25);
RaceData horse1Data2("Peter Pan", 109, 6, 41);
RaceData horse1Data3("Peter Pan", 75, 11, 21);
RaceData horse1DataX = horse1Data1 + horse1Data2 + horse1Data3;
//What do I put here to get the average scores, average time?
//Horse2's objects
RaceData horse2Data1("Tinkerbell", 145, 9, 11);
RaceData horse2Data2("Tinkerbell", 119, 10, 15);
RaceData horse2Data3("Tinkerbell", 46, 11, 55);
RaceData horse2DataX = horse2Data1 + horse2Data2 + horse2Data3;
//What do I put here to get a separate average score/average time
//that I can compare with the other one?
return 0;
}
|