help needed with linked list code pleaaaaaaase

This is a discussion on help needed with linked list code pleaaaaaaase within the C# Programming forums, part of the General Programming Boards category; i have to write this linked list program and i dont even know how to write the nodes....or the program ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    2

    help needed with linked list code pleaaaaaaase

    i have to write this linked list program and i dont even know how to write the nodes....or the program

    it says:
    1st part:
    define a structure that represents family linked list information each family has three components:husband,wife and children.as the number of children varies from family to family,the children are represented by a list that is capable of accomodating any number of items .each person is in turn represented by a structure of four components:name,surname,date of birth,and job.the job information is "unemployed" or it specifies the working organization and salary.


    the 2nd part of it

    assume that a simple(one way) list is already populated with a set of families,and a global pointer list points to the first node of the list.
    write a program to answer the following queries:
    1.find the name of all the "unemployed "people.
    2.find all the children born in 2000
    3.find all names with salary s,where 1000<=s<=2000
    4-find whether x is a wife.
    5.find whether x is a child.


    all i did was writing a node of family and another of family member....couldnt do the job node or the children node
    anybody could help pleaaaaaaaaaase um lost

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    Please read the board's homework policy

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    2

    Smile dont want the entire prob done

    i dont want the whole problem done......any help would be usefull even just the begging of the problem cuz um lost and i dunno anything
    the only part i did was this(i dont think it's even right )
    insert
    Code:
    record member {
         member next
         string firstName
    string surname
    int birthdate
         integer age
     }
     record family { 
         family next
         string husband
         string wife
        string children
         member members /
     }
    and i wrote the whole problem so that people who could help can know what um talking about
    Last edited by yara; 12-11-2009 at 09:19 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 06:16 PM
  2. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  3. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  4. Linked List
    By jpipitone in forum C Programming
    Replies: 4
    Last Post: 03-30-2003, 08:27 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21