Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   how to do an address book using C-program? (http://www.go4expert.com/forums/address-book-using-c-program-t19111/)

flora623 20Aug2009 19:25

how to do an address book using C-program?
 
this is an assignment for one of my subject..hope someone can help me solve it T.T
-------------------------------------------------
The following elements of the C programming language will be required in the implementation of this assignment:
Built-in (primitive) data types
Program control flows (e.g.: Selection, Repetition)
Function
File Input/Output
Array (for strings)
Description:
The goal for this assignment is to create an Address book program with - at a minimum - the following features:

An address must contain at least the first name and last name of a person.

You must be able to insert an address into the address book.

You must be able to search for an address by last name in the address book, and you must be able to find at least one occurance of that address in case there are one or more in the address book.

You must be able to delete the address that a user has searched for previously, if one was found.

You must be able to display the entire address book

Your address book must be able to use all available memory to store its addresses.
Your address book should also support the following features

An address can contain more fields, perhaps for street, city, zip code, phone number, email address, etc.

You should be able to find all occurances of an address, if there are several (for example, find all addresses of people with surname "Lee").

You should be able to save your address book data.

You should be able to retrieve the data you have previously saved.
You should be able to sort the addresses using a sorting algorithm of your choice.
Note: You cannot use an array to store addresses.

xpi0t0s 20Aug2009 21:40

Re: how to do an address book using C-program?
 
Sounds like the kind of thing you'd be presented with part way through a course or at the end. So you must have some idea how to start this. How far have you got with it so far; have you for example determined how you are going to store the addresses in memory if you can't use an array, and have you designed a suitable data structure? Those would seem like good starting points.

mayjune 21Aug2009 20:47

Re: how to do an address book using C-program?
 
Quote:

hope someone can help me solve it T.T
help you yes, solve it for you, no...
how do we help you?


All times are GMT +5.5. The time now is 19:27.