A quick question, is there a way to perform these 3 operations:
while(...) {
fscanf(input, "%lf %lf", &t, &y);
tTotal += t;
yTotal += y;
}
in one operation where t and y add themselves to tArray and yArray respectively, inside the scanf statement? Something of the form
fscanf(input, "%lf %lf", ...code..., ...code...);
Thanks, Ash.