Linked List Question - Help

From: TJ (TJ_at_nospam.com)
Date: 10/28/04


Date: Thu, 28 Oct 2004 15:50:36 -0400

Hi,

I have a function that returns a pointer of the Header of the list.
Upon each call of the function, a new node is added into the list,
returning the header of the list back.

I can succesfully use the following syntax :

        struct Node *Phonebook;

        Phonebook = create(Phonebook, 3,9);
        Phonebook = create(Phonebook, 5,15);
        
        The function create adds the entries 3 and 9 as the data for
the 1str node and 5, 15 for the second node. When i call print
function, it prints me out all nodes in the list.

How do i use an array to keep track of the lists? If i try

struct Node *Array[17];
Array[0] = create(Phonebook, 3, 9);
Array[0] = create(Phonebook, 5,15);

When i run the print function, it prints 5 15 only.

Will appreciate some help!

Thanks,

Ali



Relevant Pages

  • RE: Weird Problem with a Subreport
    ... Ok for the sorting i will try to explain it to you. ... query by writing the SQL I didnt include the Place holder field, ... Do you have a text box in the Goup Header? ... I have a header of shutdown in front of the whole list but the two lists ...
    (microsoft.public.access.reports)
  • RE: Weird Problem with a Subreport
    ... Ok for the sorting i will try to explain it to you. ... query from are being sorted by the place holder field. ... Do you have a text box in the Goup Header? ... I have a header of shutdown in front of the whole list but the two lists ...
    (microsoft.public.access.reports)
  • RE: Weird Problem with a Subreport
    ... Do you have a text box in the Goup Header? ... The problem with the sorting is that the field I usually use for sorting is ... Open the report in design view. ... I have a header of shutdown in front of the whole list but the two lists ...
    (microsoft.public.access.reports)
  • RE: Weird Problem with a Subreport
    ... If you don't want to show the header on the first group, ... Open the report in design view. ... I have a header of shutdown in front of the whole list but the two lists ... The Subreport will only show as many rows as will fit in the area I delegated ...
    (microsoft.public.access.reports)
  • RE: Weird Problem with a Subreport
    ... Ok for the sorting i will try to explain it to you. ... query by writing the SQL I didnt include the Place holder field, ... Do you have a text box in the Goup Header? ... I have a header of shutdown in front of the whole list but the two lists ...
    (microsoft.public.access.reports)