Hello,
As it is *your* homework, we should not be doing it for you. But, we can give you some ideas.
1) Each one of your steps (add, delete) should be a unique different function
2) You will need menus / options to open and save the file
3) Need to decide if you will use a binary file, or a text one
4) Need to decide how you will handle empty / bad data inside of the structure
5) I think you are going to need to know how many bytes each of your structures will require.
6) Be sure to comment in your code what each part is doing.
7) For extra credit, I would make the display record option to be nice and eye-candy. Use bolds, colored boxes, that sort of thing. Make it nice.
Enjoy your coding. Sometimes, I wish I was back in school. :)
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
Sounds like a class will be useful to implement it ...
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
Write a program to create an addressbook.
So you've bumped a five year old thread to ask us to do your homework for you? That's not how the cookie crumbles. Here's how you can get your answer:
- read this first
- Start a new thread with your question
- Show what you've done so far. Show code or tell us how you think the problem should be solved.
[edit]
and choosing a username like U_musthlp doesn't help you case either. I don't have to do a damn thing if I don't feel like it...
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403