- address list design
Design a classmate's address list, requested as follows:
- Each student in the address list contains the following information: student id、name、telephone number. If you need more fields, please add them yourself.
- The program has a main menu containing the following functions:
- Add a record: Add a student record from the input.
- Delete a record: Delete a student record according to the student id from the input.
- Output all records: Display all the records in the address list.
- Search by name: Input the student name and then output the whole information of the student.
- Save records: Save all the records in the address list to a certain file.
- Clear records: Delete all the records in the address list and then delete the file.
- Quit
hint:
- When the program starts, it should be determined whether there is a record file. If the file exists, read each record from it to the list.
- After the user selects and completes a function of the main menu, the program s