/********************************************************************* C201 Computer Programming II Fall 2006 Dana Vrajitoru & Definition of the class Student_rec. **********************************************************************/ #ifndef STUDENT_REC_H #define STUDENT_REC_H class Student_rec { private: char name[20]; int id; float gpa; public: // Constructors // Default constructor. Student_rec(); // Constructor with explicit name and id. Student_rec(char *the_name, int the_id); // Copy constructor Student_rec(Student_rec &data); // Destructor ~Student_rec(); // destructor // Inputs the name and the id from the user. void Input_rec(); // Outputs the content of the object. void Output_rec(); // Computes the gpa from a set of courses. void Compute_gpa(float *grades, int number_courses); }; #endif