// File Student.h // Student Class Prototype #ifndef STUDENT_H #define STUDENT_H #define NameLength 20 #include struct CourseData { int Hours; char Grade; }; class Student { public: // Constructors // Student(); Use a default constructor Student(char []="",int=0,int=0); // Initialize Name of Student void SetName(char []); // Update the class with a class record (#Hours,Grade in class 0..4) // void AddClass(int,char); Student operator+=(CourseData); // Change a Grade (#Hours, Previous Grade, New Grade) void ChangeGrade(int,char,char); // Remove a class from student's record (Hours, Grade) // void RemoveClass(int,char); Student operator-=(CourseData); // Get Hours Completed int HoursCompleted() const; // Compare two students based on GPA friend bool operator<<=(Student,Student); friend bool operator>>=(Student,Student); // Compare two students alphabetically friend bool operator<(Student,Student); friend bool operator>(Student,Student); friend bool operator==(Student,Student); // Print Student Info // void PrintStudentInfo(); friend ostream &operator<<(ostream &,Student); private: char Name[NameLength]; int Hours, Points; // Get Student's GPA float ComputeGPA() const; }; #endif