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...
Type: Posts; User: cathym
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...
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...
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...
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
Oh I think I see!
If it was defined as:
typedef struct student Student;
struct student
{
int ID;
node_ptr units;
};
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...
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...