Counting the number of times a source file is called

The title pretty much explains it, I'm trying to count how many times a looped "while" statement calls on a certain source file.

Currently the program grabs data out of a separate file and displays it as a series of test scores, averages, and names. I now need to make it count how many students there are total.

-also I need to determine the highest average out of the group, if someone could help me with that I'd be super grateful, I haven't attempted this part yet though so I might just figure it out.

Thanks in advance,

The Spartan
What do you mean by "calls on a certain source file"? Are you talking about another .c or .cpp file?
its saved as a .txt file, the program pulls data out of the .txt file and then displays it until it satisfys the conditions of the "while" statement. I need to count how many times it pulls data.
How many times per student or total?
What you've got there already does it per student. (Is that code that you created or that the teacher gave you?)
Topic archived. No new replies allowed.