Originally Posted by
Adak
For the automatic part of it, I would prepare a text file with the 10 students name, ID and test scores. Then, if 10 is entered for number of students, open the file you've prepared, and read in the data.
You should use an array to hold the students name (a char array), and either a char array or an integer array, to hold the students ID, depending on if the numbers will fit into an integer (or unsigned integer), on your system.
If you include <limits.h> and printf("%d", INT_MAX), it will show you what your integer high range is. You might want to try it with ULONG_MAX , and see if it will hold your students ID number, as well. Otherwise, you'll need to use a char array for it.
make the array big enough to hold all the test scores for a student, in a single row. Then you can have a 1 to 1 relationship of student name[0], goes with student_ID[0], goes with all the scores in testScores[0][0], testScores[0][1], testScores[0][2], etc.