1 Attachment(s)
help with parallel arrays!
i have a file attach below how can i read data from the file in to 6 following arrays
int ID[],
int maxHR[],
int age[],
float aveCommuteHR[],
float maxCommuteHR[],
float excerciseHr[]);
the first line of the data contain the id, maxHr and age, the nxt 5 lines contain the last three arrays, and the sixth line repeat the first line and next 5 lines after the sixth line also repeat and it keep repeat like that until EOF
i was suppose to use for loop nested inside a while(!EOF) loop and was not suppose to use struct or anything else beside basic looping stuff