|
CSIS 250 Fall 2000 Project #4
Assuming the following declarations, come up with a total of 20 functions including the eight listed in the definition below for the class CPhoneBook. For each function specify the name, a brief description, input, processing, and the results returned. Prepare a Word document and submit the printout including the self-evaluation sheet.
int const MAX_LEN = 10;
class CPhoneEntry { private: char name[MAX_LEN+1]; char phone[14+1]; char group[10+1]; int key; CPhoneEntry *next; public: CPhoneEntry(void); CPhoneEntry(char ch); void display(void); };
class CPhoneBook { private: CPhoneEntry *first; CPhoneEntry *last; int count; public: CPhoneBook(void); CPhoneBook(char ch); ~CPhoneBook(void); CPhoneEntry * searchByName(char name[]); void sortByName(void); bool insert(CPhoneEntry entry); bool insert(char name[], char phone[], char group[], int key); bool modifyPhone(char name[], char newPhone[]); };
void main(void) { }
|