Write a program that maintains a binary random-access file students.dat to store data about students. For each student store an integer student ID, name, the current number of points earned (an integer), and the current GPA. The student ID number should be the sequence number of the record in the file. Your program should allow the user to do the following:
• initialize the file students.dat to 100 empty records,
• input the data concerning each student (you can implement either reading from the keyboard, or sequentially from a text file)
• list all students,
• delete a record for a student,
• update any information in the file.
For input and output overload the operators >> and <<. Use the tool identification number as the record number in the random-access file
Comments
Leave a comment