I have a homework to implement a doubly-linked list in C++ with two structs. One of them should hold the next and previous pointers, as well as the data. The other struct should hold two pointers, one for the head and one for the tail
Struct DlistElem{
int data;
DlistElem* next;
DlistElem* prev;
}
Struct Dlist{
Dlist * head;
Dlist * tail;
}
//some functions
the problem I'm having is I don't know how to initialize both the head and tail to be null in order to use them. Any help would be greatly appreciated!