Fix the following cpp file for a Circular doubly-linked listclass that has the public methods of prepend, append,print_current, go_next, go_prev, go_first, go_last, and skip.
Each node holds the data of two strings.
Most of the methods are commented out just for testingpurposes.
The error I am getting is an overflow error and I cannot figureout what the error is, I think it might have something to do withme creating new nodes and/or my constructors.
cpp file code:
#include “cdll.h”
CDLLNode::CDLLNode(const char *ti, const char *tw){
time = ti;
tweet = tw;
prev = next = NULL;
}
CDLL::CDLL(){
head = new CDLLNode(time,tweet);
last = new CDLLNode(time,tweet);
head->prev = NULL;
head->next = last;
last->prev = head;
last->next =
OR
OR