Thread: Help - Linked List

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2014
    Posts
    105
    Quote Originally Posted by rcgldr View Post
    Looking at the original post code, first fix line 11 by putting typedef before the word struct. The the code shows an array 100 COMPANY's, each with a primary list pointer to the employee structure, and only a single pointer for a list sorted by antig (? what does this stand for). The code does not show where INS_LISTS_EMP is getting the employee data from. Is there a file that your'e supposed to read this data from? Assuming that you've completed the first function and that the COMPANY array is now setup, the next step is to get employee nodes from the company list, one a at a time, and then insert them in sorted order, using the list pointer LPA as the starting pointer to nodes sorted by antig.
    Thanks!

    Can you help me with the last problem I posted? The one that has 3 names, 3 ages, etc. ?

  2. #2
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    Quote Originally Posted by juanjuanjuan View Post
    Can you help me with the last problem I posted? The one that has 3 names, 3 ages, etc. ?
    Create a function that retrieves a node one at a time from the company's lists (it returns NULL when all nodes from all lists have been retrieved). Create another function that inserts nodes in sorted (by antig) order into the list that starts with LPA.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 13
    Last Post: 09-22-2013, 10:34 PM
  2. Declaring linked list inside linked list
    By blueboyz in forum C Programming
    Replies: 33
    Last Post: 04-20-2012, 10:13 AM
  3. single linked list to double linked list (help)
    By Countfog in forum C Programming
    Replies: 8
    Last Post: 04-29-2008, 08:04 PM
  4. singly linked list to doubly linked list
    By t48j in forum C Programming
    Replies: 3
    Last Post: 03-23-2005, 06:37 PM
  5. Replies: 6
    Last Post: 03-02-2005, 02:45 AM