Search:

Type: Posts; User: cathym

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,037

    Thanks again I changed the create function to...

    Thanks again
    I changed the create function to initialise a new node with a to_vertex of 0 and that has fixed the problem!.
    Thanks so much for pointing me in the right direction.
    Sometimes it is...
  2. Replies
    4
    Views
    1,037

    Thanks for the quick reply I used some printf...

    Thanks for the quick reply
    I used some printf statements to see what was in current and current->to_vertex, it seems that it points to the memory address rather than the actual value?

    Firstly, I...
  3. Replies
    4
    Views
    1,037

    Getting info from an array of pointers

    Hi.
    I have an array of pointers (called g) that point to the dummy header of a linked list.
    The linked list struct is as follows:



    typedef struct node *node_ptr;
    struct node
    {
    int...
  4. Replies
    6
    Views
    34,579

    Ahh Many many thanks, and now I shall go to bed...

    Ahh
    Many many thanks, and now I shall go to bed without pointer nightmares and will re-write the code in the morning.
    Thanks again
    :p
  5. Replies
    6
    Views
    34,579

    Oh I think I see! If it was defined as: ...

    Oh I think I see!
    If it was defined as:


    typedef struct student Student;
    struct student
    {
    int ID;
    node_ptr units;
    };
  6. Replies
    6
    Views
    34,579

    Thanks for the quick response. Isn't Student the...

    Thanks for the quick response.
    Isn't Student the actual structure though? So the line



    struct student student[1000]


    creates an array of 1000 structs of the type Student, which is...
  7. Replies
    6
    Views
    34,579

    Inserting new member into array of structs

    HI
    This is the 2nd time I have attempted this subject, and am still confused :confused:

    I need to create an array of structs. I think I can do this. I then need to insert into the array - this...
Results 1 to 7 of 7