Waitlist Class Reference
#include <waitlist.h>
List of all members.
Detailed Description
A class for storing students on a wait list. Methods exist to read and write waitlisted students to and from streams. The nominate method removes specified number of students from the wait list.
- Author:
- Mark Maloof (maloof@cs)
- Version:
- 1.0, 1/19/11
Constructor & Destructor Documentation
Member Function Documentation
void Waitlist::input |
( |
istream & |
in |
) |
|
Inputs the students from the input stream, and stores them in the vector students
.
- Parameters:
-
| in | the input stream name containing the students |
void Waitlist::input |
( |
string |
filename |
) |
|
Reads students from the specified file name, and stores them in the vector students
. If an error occurs, the method prints an error message to cout.
- Parameters:
-
| filename | the name of the file containing the students |
void Waitlist::nominate |
( |
const unsigned |
n = 1 |
) |
|
Prints and removes the n highest-priority students from this wait list.
- Parameters:
-
| n | the number of students to be nominated. |
void Waitlist::output |
( |
ostream & |
out = cout |
) |
|
Outputs the students of this Waitlist to the specified output stream.
- Parameters:
-
| out | the output stream for writing |
void Waitlist::output |
( |
string |
filename |
) |
|
Outputs the students of this Waitlist to the specified file name.
- Parameters:
-
| filename | the name of the file for writing |
Member Data Documentation
the students on this waitlist
The documentation for this class was generated from the following files: