C Homework Problem
I am completely lost as to how to start on this problem. This is the last program of the semester, and I've been doing well up to this point.
Any Help would be appreciated:
"Create an electronic address book and keep track of the names, addresses, and phone numbers of family members, friends, and business contacts. Implement this address book as an ordered linked list.
The program should perform the following operations:
1) Load some preliminary entries into the address book from a file. These entries should be already sorted by last name and first name if necessary.
2) Provide a menu of operations, including:
a) Search for a person by last name and first name (if necessary) and display their information.
b) Add new entries as an ordered list by last name and first name and read from the screen the rest of their information.
c) Delete entries.
d) Print out the names of all people between two last names.
e) Depending on the userís request, print out the names of all family members, friends, or business contacts.
f) End the program.
3) Before ending the program, write the entire ordered list with all data to a file."
If You have worked with Structures and are comfortable with Linked Lists (which I feel you should have been, cos u r at the end of ur semister), then this problem should be quite simple...
For a start....
Declare a structure in the following manner...
typedef struct node
int phcode1; /* I guess the American Numbers will be in this */
int phcode2; /* format. 432-375-1432. So, I split the phone */
int phcode3; /* number into 3 parts. */
struct node *next;
Implement the above in a linked list. Remember, do not expect others to write ur programs. Others would only guide u. Try ur bit and get back with any doubts u have. If you are not comfortable with either structures or Linked lists, get back to ur books again.
Read that post very carefully. Unregistered?....