#include <students.h>
Public Member Functions | |
Students () | |
Students (string filename) | |
void | print (ostream &out=cout) |
bool | read (string filename) |
double | getAvgGPA () |
~Students () |
|
Default class constructor. |
|
Explicit class constructor initializing this students class using the information in the file filename.
|
|
Class destructor. |
|
Returns the average of the GPAs of the students stored in the vector.
|
|
Prints to the ostream out this object's students, their names, social security numbers, majors, grade-point averages, and, for graduate students, their degrees. The ostream defaults to cout.
|
|
Reads students from the file named filename and stores them in a vector. Undergraduate students are marked with a 'U', graduate students, with a 'G'. If the file is opened successfully, then the method returns true; otherwise, it returns false;
|