> Two questions. First, is there a more efficient way to shove the
> test variables in the array testScores? I've experimented (for
> hours) but I must have missed something in class.
Efficient how? Less typing for you, or less processor time?
Less typing is to use a loop.
Less processor time is to not use a loop and just assign them all with individual assignments.
However, since you aren't doing anythign specific with your 'test*' values, why are you even bothering using them?
Code:
fscanf( p5, "%d %d %d %d %d %d",
&studentID[row],
&testScore[row][0],
&testScore[row][1],
&testScore[row][2],
&testScore[row][3],
&testScore[row][4]
);
>Second, when I run the program which eventually prints the
> arrays, I can't figure out a way to cut out the excess data.
> Since only 15 rows of 40 are printed to, is there a way to flag
> this to stop after if reaches the end of the input but be flexible
> enough to hold a max of 40? I'm not sure if I'm explaining my
> problem correctly, but any help would be greatly appreciated
What do you mean exactly? It scrolls off the screen and you
want it to pause between each "page"?
Print 15, read a key, print the next 15 .... repeat.
Quzah.