#include <EmployeeList.h>
Sample to start off database class.
Public Member Functions | |
EmployeeList () | |
Constructor. | |
~EmployeeList () | |
Destructor. | |
void | readFromFile (char *filename) |
Reads records from file into linked list. | |
void | writeToFile (char *filename) |
Writes out the current employee linked list to the indicated file, using the file format as indicated in the assignment. | |
void | print () |
Prints out the linked list in a human readable way to the screen. |
void EmployeeList::readFromFile | ( | char * | filename | ) |
Reads records from file into linked list.
The linked list is always kept in order sorted by employee name, so this method traverses the linked list and finds the appropriate location.
filename | Name of the input file. |