Thread: phone book directory 2

  1. #1
    arangawawa
    Guest

    phone book directory

    i need to write a program that reads in a file containing a person's name, address, and phone number and then be able to:
    Insert into directory, Delete from directory, List contents of directory, sort the directory, search for a specific person, and Modify an entry.

    Any help that can be provided would be greatly appreciated. I just need a little help getting started(reading the file into a list).

    Thanks

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>reading the file into a list<<
    fopen()
    fgets()
    fclose()
    ... all found in your C book, or your man pages.

    If you're stuck with your code, post it here for further help.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    I merged your threads, please don't start new ones on the same topic.

    Also, please use code tags when posting code. You can edit your previous post to add them
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    My code is below. It is full of errors.
    Here's a novel idea! How about either posting some of the errors, or just fixing them yourself?

    Oh, and use code tags.
    [edit] Curses, foiled again! [/edit]

    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    wawa, it's a bit difficult to help you without knowing and seeing more.

    What's in list.h? I presume it holds the definitions of Node and Person etc, but we need to see what they are in order to help you.

    It's obvious your code isn't complete, so what exactly are you stuck on? If you after link list code, there's plenty on these forums, try a search and see what you find.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Must read book!
    By RealityFusion in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-15-2004, 09:05 PM
  2. I"m selling a book...
    By St0rmTroop3er in forum Game Programming
    Replies: 2
    Last Post: 12-13-2003, 01:55 PM
  3. Replies: 6
    Last Post: 07-30-2003, 03:08 AM
  4. Directory reading trouble
    By samGwilliam in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 09:43 AM
  5. The Site Directory
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 01-22-2002, 08:19 PM