How can I create and print a circular linked list which has two struct calls inside it?
How can I create and print a circular linked list which has two struct calls inside it?
See my response to your other post here.
Due to everyday life I don't have much time to spare in reading so it would be very helpful if you helped me out.
We have two structs who are independent with each other. Also, we have a third struct which uses the other two. There is an example:
Code:typedef struct { int year; int month; int day; }date; typedef struct { double latitude; double longitude; }location; typedef struct incList { date reported; location coordinates; struct incList *next; }incident;
The term is "member" not "call".
Anyway, have you successfully done this with nodes containing one such member?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Is it different from how to do it with only one struct?