I've got a C assignment to make a "Rolodex" project. I wrote out the whole assignment just so you would understand the scope. I'm just getting going on this. Last week's lecture was about Dynamic Self Referential Lists in C, so I get the concept of what I'm supposed to be doing here. I'm looking for advice on how and where to set up the address file. Thanks for any and all help!!

The Basics from the Assignment:
1. Nodes are linked with both a next & previous pointer.
2. The last node always points to the first node.
3. A pointer to the list can point to any node and that can be the first node in the list.

Nodes should be in alphabetic order

Commands should include
I insert
R remove
S save
L load
J move forward
K move backward
P print all of th enodes
F find a name

Requirements:
1. Build a doubly linked circular list data structure
2. Function to insert into the list in the correct position.
3. Correctly remove a node from the list.
4. PRint the list to the screen in alphabetic order.
5. Read the data from a node in the list.
6. Find a node using a key. This means that you have be able to move the handle to a node with a specific piece of info in the address. (Search by name) If not found the current pointed to node should not change.
7. You need to have a menu system to implement the Roledex commands
8. You must be able to save a Rolodex to disk.
9. Load an address book from file.
10. Read a file name and load an address book.

I'd say you should sort the address book entried into alphabetical order before you write it the file. Writing and reading to the text file should be easy if you use an ASCII format (not binary). Store it something like this:

Name Address Phone[other data here]
Name Address Phone

Using a space to seperate the fields and newlines to seperate records, as shown here.

Use fgets() to do your writing, and fputs() to write it back to the file.

Hope this helps

I've got a C assignment to make a "Rolodex" project. I wrote out the whole assignment just so you would understand the scope. I'm just getting going on this. Last week's lecture was about Dynamic Self Referential Lists in C, so I get the concept of what I'm supposed to be doing here. I'm looking for advice on how and where to set up the address file. Thanks for any and all help!!

The Basics from the Assignment:
1. Nodes are linked with both a next & previous pointer.
2. The last node always points to the first node.
3. A pointer to the list can point to any node and that can be the first node in the list.

Nodes should be in alphabetic order

Commands should include
I insert
R remove
S save
L load
J move forward
K move backward
P print all of th enodes
F find a name

Requirements:
1. Build a doubly linked circular list data structure
2. Function to insert into the list in the correct position.
3. Correctly remove a node from the list.
4. PRint the list to the screen in alphabetic order.
5. Read the data from a node in the list.
6. Find a node using a key. This means that you have be able to move the handle to a node with a specific piece of info in the address. (Search by name) If not found the current pointed to node should not change.
7. You need to have a menu system to implement the Roledex commands
8. You must be able to save a Rolodex to disk.
9. Load an address book from file.
10. Read a file name and load an address book.

send functions on doubly circular linked list

commented: :icon_rolleyes: -1
commented: boo -5
commented: Don't bump old threads -1

could you please give data structures programs in c language

commented: Did you read the other threads? -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.