Thread: How to add an array of numbers in a struct node ?

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    5

    How to add an array of numbers in a struct node ?

    Can anyone tell me how to add an array of numbers in this struct node?


    typedef struct node *node_ptr;

    struct node {
    char *Dept_name;
    int dept_IDS[1000];
    node_ptr next;
    }

    So basically the program is like this ..

    Enter the character name where you want to put you ID in:

    You typed: abc

    /* It searches for that name in the linked list (which is Dept_Name) and asks you to enter an int ID */

    This integer ID is stored in that array in that node where that Dept_Name is....



    How to add an integer inside the array of dept_IDS [] for a particular department name? And also we are working on a linked list


    Please reply ASAP!!!!
    Cheers

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Why not go further in the original thread?

    http://www.cprogramming.com/cboard/s...threadid=38554

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help Debugging my AVL tree program.
    By Nextstopearth in forum C Programming
    Replies: 2
    Last Post: 04-04-2009, 01:48 AM
  2. Replies: 1
    Last Post: 12-03-2008, 03:10 AM
  3. Replies: 2
    Last Post: 07-11-2008, 07:39 AM
  4. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 10:16 AM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM