Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : ELEMLIST.CPP

 
Output of file : ELEMLIST.CPP contained in archive : CPPTUT.ZIP
// Chapter 11 - Program 7
#include "elemlist.h"



void
employee_list::add_person(person *new_employee)
{
employee_element *temp;

temp = new employee_element(new_employee);
if (start == NULL)
start = end_of_list = temp;
else {
end_of_list->next_employee = temp;
end_of_list = temp;
}
}




void
employee_list::display_list(void)
{
employee_element *temp;

temp = start;
do {
temp->employee_data->display();
temp = temp->next_employee;
} while (temp != NULL);
}


  3 Responses to “Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : ELEMLIST.CPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/