Problem Description:
Create a Student Record System where you maintain a list of students with attributes such as name, age, and grades. Use constructors and destructors to manage resources effectively.
Location:
https://github.com/patil-rushikesh/cpp_programs/tree/main/Examples
Attributes:
Student class:
name (string) – Name of the student.
age (int) – Age of the student.
grades (float[]) – Array of grades for different subjects.
Methods:
Constructor – Initializes the student attributes.
Destructor – Handles cleanup (if necessary).
The program should be menu-driven, allowing the user to:
- Add a new student record.
- Display student details.
- Delete a student record (using a destructor).
- Exit the program.
Requirements for the Issue:
- Implement the Student class with a constructor and destructor.
- Handle the dynamic memory allocation (if necessary) in the constructor.
- Use the destructor for cleanup when a student record is deleted.
- Provide a menu-driven interface to manage student records.
Problem Description:
Create a Student Record System where you maintain a list of students with attributes such as name, age, and grades. Use constructors and destructors to manage resources effectively.
Location:
https://github.com/patil-rushikesh/cpp_programs/tree/main/Examples
Attributes:
Student class:
name (string) – Name of the student.
age (int) – Age of the student.
grades (float[]) – Array of grades for different subjects.
Methods:
Constructor – Initializes the student attributes.
Destructor – Handles cleanup (if necessary).
The program should be menu-driven, allowing the user to:
Requirements for the Issue: