Hello, can somebody of you give a hint on how to build a list (ordered list) ?
I think that I should declare elements like this:
How should I start building the list if I don't know from the beginning how many elements there will be in the list?
Thank you.
I think that I should declare elements like this:
Code:
struct node
{
int data;
struct node *next;
struct node *prev;
};
Thank you.