For the given code you task is to to implement the following:
1)destructor LList::~LList ()
struct Node {
int data;
Node *next;
class LList {
public:
LList(); ~LList();
private:
Node *head;
int size;
};
LList::LList ()
{
head = NULL;
size = 0; }
struct Node {
int data;
Node *next;
class LList {
public:
LList(); ~LList();
private:
Node *head;
int size;
};
LList::LList ()
{
head = NULL;
size = 0;
}
LList::~LList (){
}
Comments