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
Leave a comment